Class UserPublicMetrics


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class UserPublicMetrics
    extends Object
    A list of metrics for this User.
    • Constructor Detail

      • UserPublicMetrics

        public UserPublicMetrics()
    • Method Detail

      • getFollowersCount

        @Nonnull
        public Integer getFollowersCount()
        Number of Users who are following this User.
        Returns:
        followersCount
      • setFollowersCount

        public void setFollowersCount​(Integer followersCount)
      • getFollowingCount

        @Nonnull
        public Integer getFollowingCount()
        Number of Users this User is following.
        Returns:
        followingCount
      • setFollowingCount

        public void setFollowingCount​(Integer followingCount)
      • getListedCount

        @Nonnull
        public Integer getListedCount()
        The number of lists that include this User.
        Returns:
        listedCount
      • setListedCount

        public void setListedCount​(Integer listedCount)
      • getTweetCount

        @Nonnull
        public Integer getTweetCount()
        The number of Tweets (including Retweets) posted by this User.
        Returns:
        tweetCount
      • setTweetCount

        public void setTweetCount​(Integer tweetCount)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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