Class TweetNonPublicMetrics


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

      • TweetNonPublicMetrics

        public TweetNonPublicMetrics()
    • Method Detail

      • getImpressionCount

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

        public void setImpressionCount​(Integer impressionCount)
      • 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 TweetNonPublicMetrics
      • fromJson

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

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