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 classAnimatedGif.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PREVIEW_IMAGE_URLstatic StringSERIALIZED_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 AnimatedGifaddVariantsItem(VideoAllOfVariants variantsItem)booleanequals(Object o)static AnimatedGiffromJson(String jsonString)Create an instance of AnimatedGif given an JSON stringURLgetPreviewImageUrl()Get previewImageUrlList<VideoAllOfVariants>getVariants()An array of all available variants of the mediainthashCode()AnimatedGifpreviewImageUrl(URL previewImageUrl)voidsetPreviewImageUrl(URL previewImageUrl)voidsetVariants(List<VideoAllOfVariants> variants)StringtoJson()Convert an instance of AnimatedGif to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundAnimatedGifvariants(List<VideoAllOfVariants> 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<VideoAllOfVariants> variants)
-
addVariantsItem
public AnimatedGif addVariantsItem(VideoAllOfVariants variantsItem)
-
getVariants
@Nullable public List<VideoAllOfVariants> getVariants()
An array of all available variants of the media- Returns:
- variants
-
setVariants
public void setVariants(List<VideoAllOfVariants> variants)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
-
-