Class TweetGeo


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class TweetGeo
    extends Object
    The location tagged on the Tweet, if the user provided one.
    • Constructor Detail

      • TweetGeo

        public TweetGeo()
    • Method Detail

      • coordinates

        public TweetGeo coordinates​(Point coordinates)
      • getCoordinates

        @Nullable
        public Point getCoordinates()
        Get coordinates
        Returns:
        coordinates
      • setCoordinates

        public void setCoordinates​(Point coordinates)
      • getPlaceId

        @Nullable
        public String getPlaceId()
        The identifier for this place
        Returns:
        placeId
      • setPlaceId

        public void setPlaceId​(String placeId)
      • 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 TweetGeo
      • fromJson

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

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