Class StreamingTweet


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class StreamingTweet
    extends Object
    StreamingTweet
    • Constructor Detail

      • StreamingTweet

        public StreamingTweet()
    • Method Detail

      • setData

        public void setData​(Tweet data)
      • setIncludes

        public void setIncludes​(Expansions includes)
      • setErrors

        public void setErrors​(List<Problem> errors)
      • 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 StreamingTweet
      • fromJson

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

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