Package com.twitter.clientlib.model
Class AnimatedGif
- java.lang.Object
-
- com.twitter.clientlib.model.Media
-
- com.twitter.clientlib.model.AnimatedGif
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class AnimatedGif extends Media
AnimatedGif
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnimatedGif.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_PREVIEW_IMAGE_URL
static String
SERIALIZED_NAME_VARIANTS
-
Fields inherited from class com.twitter.clientlib.model.Media
SERIALIZED_NAME_HEIGHT, SERIALIZED_NAME_MEDIA_KEY, SERIALIZED_NAME_TYPE, SERIALIZED_NAME_WIDTH, type
-
-
Constructor Summary
Constructors Constructor Description AnimatedGif()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnimatedGif
addVariantsItem(Variant variantsItem)
boolean
equals(Object o)
static AnimatedGif
fromJson(String jsonString)
Create an instance of AnimatedGif given an JSON stringURL
getPreviewImageUrl()
Get previewImageUrlList<Variant>
getVariants()
An array of all available variants of the media.int
hashCode()
AnimatedGif
previewImageUrl(URL previewImageUrl)
void
setPreviewImageUrl(URL previewImageUrl)
void
setVariants(List<Variant> variants)
String
toJson()
Convert an instance of AnimatedGif to an JSON stringString
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues foundAnimatedGif
variants(List<Variant> variants)
-
-
-
Field Detail
-
SERIALIZED_NAME_PREVIEW_IMAGE_URL
public static final String SERIALIZED_NAME_PREVIEW_IMAGE_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VARIANTS
public static final String SERIALIZED_NAME_VARIANTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
previewImageUrl
public AnimatedGif previewImageUrl(URL previewImageUrl)
-
getPreviewImageUrl
@Nullable public URL getPreviewImageUrl()
Get previewImageUrl- Returns:
- previewImageUrl
-
setPreviewImageUrl
public void setPreviewImageUrl(URL previewImageUrl)
-
variants
public AnimatedGif variants(List<Variant> variants)
-
addVariantsItem
public AnimatedGif addVariantsItem(Variant variantsItem)
-
getVariants
@Nullable public List<Variant> getVariants()
An array of all available variants of the media.- Returns:
- variants
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to AnimatedGif
-
fromJson
public static AnimatedGif fromJson(String jsonString) throws IOException
Create an instance of AnimatedGif given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of AnimatedGif
- Throws:
IOException
- if the JSON string is invalid with respect to AnimatedGif
-
-