Class TweetPromotedMetrics


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

      • TweetPromotedMetrics

        public TweetPromotedMetrics()
    • Method Detail

      • getImpressionCount

        @Nullable
        public Integer getImpressionCount()
        Number of times this Tweet has been viewed.
        Returns:
        impressionCount
      • setImpressionCount

        public void setImpressionCount​(Integer impressionCount)
      • getLikeCount

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

        public void setLikeCount​(Integer likeCount)
      • getReplyCount

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

        public void setReplyCount​(Integer replyCount)
      • getRetweetCount

        @Nullable
        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 TweetPromotedMetrics
      • fromJson

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

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