Package com.twitter.clientlib.model
Class Video
- java.lang.Object
-
- com.twitter.clientlib.model.Media
-
- com.twitter.clientlib.model.Video
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Video extends Media
Video
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Video.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_DURATION_MS
static String
SERIALIZED_NAME_NON_PUBLIC_METRICS
static String
SERIALIZED_NAME_ORGANIC_METRICS
static String
SERIALIZED_NAME_PREVIEW_IMAGE_URL
static String
SERIALIZED_NAME_PROMOTED_METRICS
static String
SERIALIZED_NAME_PUBLIC_METRICS
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 Video()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_DURATION_MS
public static final String SERIALIZED_NAME_DURATION_MS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NON_PUBLIC_METRICS
public static final String SERIALIZED_NAME_NON_PUBLIC_METRICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ORGANIC_METRICS
public static final String SERIALIZED_NAME_ORGANIC_METRICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PREVIEW_IMAGE_URL
public static final String SERIALIZED_NAME_PREVIEW_IMAGE_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROMOTED_METRICS
public static final String SERIALIZED_NAME_PROMOTED_METRICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PUBLIC_METRICS
public static final String SERIALIZED_NAME_PUBLIC_METRICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VARIANTS
public static final String SERIALIZED_NAME_VARIANTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDurationMs
public void setDurationMs(Integer durationMs)
-
nonPublicMetrics
public Video nonPublicMetrics(VideoAllOfNonPublicMetrics nonPublicMetrics)
-
getNonPublicMetrics
@Nullable public VideoAllOfNonPublicMetrics getNonPublicMetrics()
Get nonPublicMetrics- Returns:
- nonPublicMetrics
-
setNonPublicMetrics
public void setNonPublicMetrics(VideoAllOfNonPublicMetrics nonPublicMetrics)
-
organicMetrics
public Video organicMetrics(VideoAllOfOrganicMetrics organicMetrics)
-
getOrganicMetrics
@Nullable public VideoAllOfOrganicMetrics getOrganicMetrics()
Get organicMetrics- Returns:
- organicMetrics
-
setOrganicMetrics
public void setOrganicMetrics(VideoAllOfOrganicMetrics organicMetrics)
-
getPreviewImageUrl
@Nullable public URL getPreviewImageUrl()
Get previewImageUrl- Returns:
- previewImageUrl
-
setPreviewImageUrl
public void setPreviewImageUrl(URL previewImageUrl)
-
promotedMetrics
public Video promotedMetrics(VideoAllOfPromotedMetrics promotedMetrics)
-
getPromotedMetrics
@Nullable public VideoAllOfPromotedMetrics getPromotedMetrics()
Get promotedMetrics- Returns:
- promotedMetrics
-
setPromotedMetrics
public void setPromotedMetrics(VideoAllOfPromotedMetrics promotedMetrics)
-
publicMetrics
public Video publicMetrics(VideoAllOfPublicMetrics publicMetrics)
-
getPublicMetrics
@Nullable public VideoAllOfPublicMetrics getPublicMetrics()
Get publicMetrics- Returns:
- publicMetrics
-
setPublicMetrics
public void setPublicMetrics(VideoAllOfPublicMetrics publicMetrics)
-
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 Video
-
fromJson
public static Video fromJson(String jsonString) throws IOException
Create an instance of Video given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of Video
- Throws:
IOException
- if the JSON string is invalid with respect to Video
-
-