Package com.twitter.clientlib.model
Class TweetPromotedMetrics
- java.lang.Object
-
- com.twitter.clientlib.model.TweetPromotedMetrics
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetPromotedMetrics extends Object
Promoted nonpublic engagement metrics for the Tweet at the time of the request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTweetPromotedMetrics.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_IMPRESSION_COUNTstatic StringSERIALIZED_NAME_LIKE_COUNTstatic StringSERIALIZED_NAME_REPLY_COUNTstatic StringSERIALIZED_NAME_RETWEET_COUNT
-
Constructor Summary
Constructors Constructor Description TweetPromotedMetrics()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static TweetPromotedMetricsfromJson(String jsonString)Create an instance of TweetPromotedMetrics given an JSON stringIntegergetImpressionCount()Number of times this Tweet has been viewed.IntegergetLikeCount()Number of times this Tweet has been liked.IntegergetReplyCount()Number of times this Tweet has been replied to.IntegergetRetweetCount()Number of times this Tweet has been Retweeted.inthashCode()TweetPromotedMetricsimpressionCount(Integer impressionCount)TweetPromotedMetricslikeCount(Integer likeCount)TweetPromotedMetricsreplyCount(Integer replyCount)TweetPromotedMetricsretweetCount(Integer retweetCount)voidsetImpressionCount(Integer impressionCount)voidsetLikeCount(Integer likeCount)voidsetReplyCount(Integer replyCount)voidsetRetweetCount(Integer retweetCount)StringtoJson()Convert an instance of TweetPromotedMetrics to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_IMPRESSION_COUNT
public static final String SERIALIZED_NAME_IMPRESSION_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LIKE_COUNT
public static final String SERIALIZED_NAME_LIKE_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REPLY_COUNT
public static final String SERIALIZED_NAME_REPLY_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RETWEET_COUNT
public static final String SERIALIZED_NAME_RETWEET_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
impressionCount
public TweetPromotedMetrics impressionCount(Integer impressionCount)
-
getImpressionCount
@Nullable public Integer getImpressionCount()
Number of times this Tweet has been viewed.- Returns:
- impressionCount
-
setImpressionCount
public void setImpressionCount(Integer impressionCount)
-
likeCount
public TweetPromotedMetrics likeCount(Integer likeCount)
-
getLikeCount
@Nullable public Integer getLikeCount()
Number of times this Tweet has been liked.- Returns:
- likeCount
-
setLikeCount
public void setLikeCount(Integer likeCount)
-
replyCount
public TweetPromotedMetrics replyCount(Integer replyCount)
-
getReplyCount
@Nullable public Integer getReplyCount()
Number of times this Tweet has been replied to.- Returns:
- replyCount
-
setReplyCount
public void setReplyCount(Integer replyCount)
-
retweetCount
public TweetPromotedMetrics retweetCount(Integer retweetCount)
-
getRetweetCount
@Nullable public Integer getRetweetCount()
Number of times this Tweet has been Retweeted.- Returns:
- retweetCount
-
setRetweetCount
public void setRetweetCount(Integer retweetCount)
-
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 TweetPromotedMetrics
-
fromJson
public static TweetPromotedMetrics fromJson(String jsonString) throws IOException
Create an instance of TweetPromotedMetrics given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TweetPromotedMetrics
- Throws:
IOException- if the JSON string is invalid with respect to TweetPromotedMetrics
-
toJson
public String toJson()
Convert an instance of TweetPromotedMetrics to an JSON string- Returns:
- JSON string
-
-