Package com.twitter.clientlib.model
Class TweetOrganicMetrics
- java.lang.Object
-
- com.twitter.clientlib.model.TweetOrganicMetrics
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetOrganicMetrics extends Object
Organic nonpublic engagement metrics for the Tweet at the time of the request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TweetOrganicMetrics.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_IMPRESSION_COUNT
static String
SERIALIZED_NAME_LIKE_COUNT
static String
SERIALIZED_NAME_REPLY_COUNT
static String
SERIALIZED_NAME_RETWEET_COUNT
-
Constructor Summary
Constructors Constructor Description TweetOrganicMetrics()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static TweetOrganicMetrics
fromJson(String jsonString)
Create an instance of TweetOrganicMetrics given an JSON stringInteger
getImpressionCount()
Number of times this Tweet has been viewed.Integer
getLikeCount()
Number of times this Tweet has been liked.Integer
getReplyCount()
Number of times this Tweet has been replied to.Integer
getRetweetCount()
Number of times this Tweet has been Retweeted.int
hashCode()
TweetOrganicMetrics
impressionCount(Integer impressionCount)
TweetOrganicMetrics
likeCount(Integer likeCount)
TweetOrganicMetrics
replyCount(Integer replyCount)
TweetOrganicMetrics
retweetCount(Integer retweetCount)
void
setImpressionCount(Integer impressionCount)
void
setLikeCount(Integer likeCount)
void
setReplyCount(Integer replyCount)
void
setRetweetCount(Integer retweetCount)
String
toJson()
Convert an instance of TweetOrganicMetrics to an JSON stringString
toString()
static void
validateJsonObject(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 TweetOrganicMetrics impressionCount(Integer impressionCount)
-
getImpressionCount
@Nonnull public Integer getImpressionCount()
Number of times this Tweet has been viewed.- Returns:
- impressionCount
-
setImpressionCount
public void setImpressionCount(Integer impressionCount)
-
likeCount
public TweetOrganicMetrics likeCount(Integer likeCount)
-
getLikeCount
@Nonnull public Integer getLikeCount()
Number of times this Tweet has been liked.- Returns:
- likeCount
-
setLikeCount
public void setLikeCount(Integer likeCount)
-
replyCount
public TweetOrganicMetrics replyCount(Integer replyCount)
-
getReplyCount
@Nonnull public Integer getReplyCount()
Number of times this Tweet has been replied to.- Returns:
- replyCount
-
setReplyCount
public void setReplyCount(Integer replyCount)
-
retweetCount
public TweetOrganicMetrics retweetCount(Integer retweetCount)
-
getRetweetCount
@Nonnull 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 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 TweetOrganicMetrics
-
fromJson
public static TweetOrganicMetrics fromJson(String jsonString) throws IOException
Create an instance of TweetOrganicMetrics given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of TweetOrganicMetrics
- Throws:
IOException
- if the JSON string is invalid with respect to TweetOrganicMetrics
-
toJson
public String toJson()
Convert an instance of TweetOrganicMetrics to an JSON string- Returns:
- JSON string
-
-