Package com.twitter.clientlib.model
Class VideoAllOfPromotedMetrics
- java.lang.Object
-
- com.twitter.clientlib.model.VideoAllOfPromotedMetrics
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class VideoAllOfPromotedMetrics extends Object
Promoted nonpublic engagement metrics for the Media at the time of the request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VideoAllOfPromotedMetrics.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_PLAYBACK0_COUNT
static String
SERIALIZED_NAME_PLAYBACK100_COUNT
static String
SERIALIZED_NAME_PLAYBACK25_COUNT
static String
SERIALIZED_NAME_PLAYBACK50_COUNT
static String
SERIALIZED_NAME_PLAYBACK75_COUNT
static String
SERIALIZED_NAME_VIEW_COUNT
-
Constructor Summary
Constructors Constructor Description VideoAllOfPromotedMetrics()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static VideoAllOfPromotedMetrics
fromJson(String jsonString)
Create an instance of VideoAllOfPromotedMetrics given an JSON stringInteger
getPlayback0Count()
Number of users who made it through 0% of the video.Integer
getPlayback100Count()
Number of users who made it through 100% of the video.Integer
getPlayback25Count()
Number of users who made it through 25% of the video.Integer
getPlayback50Count()
Number of users who made it through 50% of the video.Integer
getPlayback75Count()
Number of users who made it through 75% of the video.Integer
getViewCount()
Number of times this video has been viewed.int
hashCode()
VideoAllOfPromotedMetrics
playback0Count(Integer playback0Count)
VideoAllOfPromotedMetrics
playback100Count(Integer playback100Count)
VideoAllOfPromotedMetrics
playback25Count(Integer playback25Count)
VideoAllOfPromotedMetrics
playback50Count(Integer playback50Count)
VideoAllOfPromotedMetrics
playback75Count(Integer playback75Count)
void
setPlayback0Count(Integer playback0Count)
void
setPlayback100Count(Integer playback100Count)
void
setPlayback25Count(Integer playback25Count)
void
setPlayback50Count(Integer playback50Count)
void
setPlayback75Count(Integer playback75Count)
void
setViewCount(Integer viewCount)
String
toJson()
Convert an instance of VideoAllOfPromotedMetrics to an JSON stringString
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues foundVideoAllOfPromotedMetrics
viewCount(Integer viewCount)
-
-
-
Field Detail
-
SERIALIZED_NAME_PLAYBACK0_COUNT
public static final String SERIALIZED_NAME_PLAYBACK0_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PLAYBACK100_COUNT
public static final String SERIALIZED_NAME_PLAYBACK100_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PLAYBACK25_COUNT
public static final String SERIALIZED_NAME_PLAYBACK25_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PLAYBACK50_COUNT
public static final String SERIALIZED_NAME_PLAYBACK50_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PLAYBACK75_COUNT
public static final String SERIALIZED_NAME_PLAYBACK75_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VIEW_COUNT
public static final String SERIALIZED_NAME_VIEW_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
playback0Count
public VideoAllOfPromotedMetrics playback0Count(Integer playback0Count)
-
getPlayback0Count
@Nullable public Integer getPlayback0Count()
Number of users who made it through 0% of the video.- Returns:
- playback0Count
-
setPlayback0Count
public void setPlayback0Count(Integer playback0Count)
-
playback100Count
public VideoAllOfPromotedMetrics playback100Count(Integer playback100Count)
-
getPlayback100Count
@Nullable public Integer getPlayback100Count()
Number of users who made it through 100% of the video.- Returns:
- playback100Count
-
setPlayback100Count
public void setPlayback100Count(Integer playback100Count)
-
playback25Count
public VideoAllOfPromotedMetrics playback25Count(Integer playback25Count)
-
getPlayback25Count
@Nullable public Integer getPlayback25Count()
Number of users who made it through 25% of the video.- Returns:
- playback25Count
-
setPlayback25Count
public void setPlayback25Count(Integer playback25Count)
-
playback50Count
public VideoAllOfPromotedMetrics playback50Count(Integer playback50Count)
-
getPlayback50Count
@Nullable public Integer getPlayback50Count()
Number of users who made it through 50% of the video.- Returns:
- playback50Count
-
setPlayback50Count
public void setPlayback50Count(Integer playback50Count)
-
playback75Count
public VideoAllOfPromotedMetrics playback75Count(Integer playback75Count)
-
getPlayback75Count
@Nullable public Integer getPlayback75Count()
Number of users who made it through 75% of the video.- Returns:
- playback75Count
-
setPlayback75Count
public void setPlayback75Count(Integer playback75Count)
-
viewCount
public VideoAllOfPromotedMetrics viewCount(Integer viewCount)
-
getViewCount
@Nullable public Integer getViewCount()
Number of times this video has been viewed.- Returns:
- viewCount
-
setViewCount
public void setViewCount(Integer viewCount)
-
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 VideoAllOfPromotedMetrics
-
fromJson
public static VideoAllOfPromotedMetrics fromJson(String jsonString) throws IOException
Create an instance of VideoAllOfPromotedMetrics given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of VideoAllOfPromotedMetrics
- Throws:
IOException
- if the JSON string is invalid with respect to VideoAllOfPromotedMetrics
-
toJson
public String toJson()
Convert an instance of VideoAllOfPromotedMetrics to an JSON string- Returns:
- JSON string
-
-