Package com.twitter.clientlib.model
Class UserPublicMetrics
- java.lang.Object
-
- com.twitter.clientlib.model.UserPublicMetrics
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class UserPublicMetrics extends Object
A list of metrics for this User.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserPublicMetrics.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_FOLLOWERS_COUNTstatic StringSERIALIZED_NAME_FOLLOWING_COUNTstatic StringSERIALIZED_NAME_LISTED_COUNTstatic StringSERIALIZED_NAME_TWEET_COUNT
-
Constructor Summary
Constructors Constructor Description UserPublicMetrics()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)UserPublicMetricsfollowersCount(Integer followersCount)UserPublicMetricsfollowingCount(Integer followingCount)static UserPublicMetricsfromJson(String jsonString)Create an instance of UserPublicMetrics given an JSON stringIntegergetFollowersCount()Number of Users who are following this User.IntegergetFollowingCount()Number of Users this User is following.IntegergetListedCount()The number of lists that include this User.IntegergetTweetCount()The number of Tweets (including Retweets) posted by this User.inthashCode()UserPublicMetricslistedCount(Integer listedCount)voidsetFollowersCount(Integer followersCount)voidsetFollowingCount(Integer followingCount)voidsetListedCount(Integer listedCount)voidsetTweetCount(Integer tweetCount)StringtoJson()Convert an instance of UserPublicMetrics to an JSON stringStringtoString()UserPublicMetricstweetCount(Integer tweetCount)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_FOLLOWERS_COUNT
public static final String SERIALIZED_NAME_FOLLOWERS_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FOLLOWING_COUNT
public static final String SERIALIZED_NAME_FOLLOWING_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LISTED_COUNT
public static final String SERIALIZED_NAME_LISTED_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TWEET_COUNT
public static final String SERIALIZED_NAME_TWEET_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
followersCount
public UserPublicMetrics followersCount(Integer followersCount)
-
getFollowersCount
@Nonnull public Integer getFollowersCount()
Number of Users who are following this User.- Returns:
- followersCount
-
setFollowersCount
public void setFollowersCount(Integer followersCount)
-
followingCount
public UserPublicMetrics followingCount(Integer followingCount)
-
getFollowingCount
@Nonnull public Integer getFollowingCount()
Number of Users this User is following.- Returns:
- followingCount
-
setFollowingCount
public void setFollowingCount(Integer followingCount)
-
listedCount
public UserPublicMetrics listedCount(Integer listedCount)
-
getListedCount
@Nonnull public Integer getListedCount()
The number of lists that include this User.- Returns:
- listedCount
-
setListedCount
public void setListedCount(Integer listedCount)
-
tweetCount
public UserPublicMetrics tweetCount(Integer tweetCount)
-
getTweetCount
@Nonnull public Integer getTweetCount()
The number of Tweets (including Retweets) posted by this User.- Returns:
- tweetCount
-
setTweetCount
public void setTweetCount(Integer tweetCount)
-
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 UserPublicMetrics
-
fromJson
public static UserPublicMetrics fromJson(String jsonString) throws IOException
Create an instance of UserPublicMetrics given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UserPublicMetrics
- Throws:
IOException- if the JSON string is invalid with respect to UserPublicMetrics
-
toJson
public String toJson()
Convert an instance of UserPublicMetrics to an JSON string- Returns:
- JSON string
-
-