Class TweetPublicMetrics


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class TweetPublicMetrics
    extends Object
    Engagement metrics for the Tweet at the time of the request.
    • Constructor Detail

      • TweetPublicMetrics

        public TweetPublicMetrics()
    • Method Detail

      • getLikeCount

        @Nonnull
        public Integer getLikeCount()
        Number of times this Tweet has been liked.
        Returns:
        likeCount
      • setLikeCount

        public void setLikeCount​(Integer likeCount)
      • getQuoteCount

        @Nullable
        public Integer getQuoteCount()
        Number of times this Tweet has been quoted.
        Returns:
        quoteCount
      • setQuoteCount

        public void setQuoteCount​(Integer quoteCount)
      • getReplyCount

        @Nonnull
        public Integer getReplyCount()
        Number of times this Tweet has been replied to.
        Returns:
        replyCount
      • setReplyCount

        public void setReplyCount​(Integer replyCount)
      • getRetweetCount

        @Nonnull
        public Integer getRetweetCount()
        Number of times this Tweet has been Retweeted.
        Returns:
        retweetCount
      • setRetweetCount

        public void setRetweetCount​(Integer retweetCount)
      • 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 TweetPublicMetrics
      • fromJson

        public static TweetPublicMetrics fromJson​(String jsonString)
                                           throws IOException
        Create an instance of TweetPublicMetrics given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of TweetPublicMetrics
        Throws:
        IOException - if the JSON string is invalid with respect to TweetPublicMetrics
      • toJson

        public String toJson()
        Convert an instance of TweetPublicMetrics to an JSON string
        Returns:
        JSON string