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 class
UserPublicMetrics.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_FOLLOWERS_COUNT
static String
SERIALIZED_NAME_FOLLOWING_COUNT
static String
SERIALIZED_NAME_LISTED_COUNT
static String
SERIALIZED_NAME_TWEET_COUNT
-
Constructor Summary
Constructors Constructor Description UserPublicMetrics()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
UserPublicMetrics
followersCount(Integer followersCount)
UserPublicMetrics
followingCount(Integer followingCount)
static UserPublicMetrics
fromJson(String jsonString)
Create an instance of UserPublicMetrics given an JSON stringInteger
getFollowersCount()
Number of Users who are following this User.Integer
getFollowingCount()
Number of Users this User is following.Integer
getListedCount()
The number of lists that include this User.Integer
getTweetCount()
The number of Tweets (including Retweets) posted by this User.int
hashCode()
UserPublicMetrics
listedCount(Integer listedCount)
void
setFollowersCount(Integer followersCount)
void
setFollowingCount(Integer followingCount)
void
setListedCount(Integer listedCount)
void
setTweetCount(Integer tweetCount)
String
toJson()
Convert an instance of UserPublicMetrics to an JSON stringString
toString()
UserPublicMetrics
tweetCount(Integer tweetCount)
static void
validateJsonObject(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 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 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
-
-