Package com.twitter.clientlib.model
Class TweetGeo
- java.lang.Object
-
- com.twitter.clientlib.model.TweetGeo
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetGeo extends Object
The location tagged on the Tweet, if the user provided one.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTweetGeo.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COORDINATESstatic StringSERIALIZED_NAME_PLACE_ID
-
Constructor Summary
Constructors Constructor Description TweetGeo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TweetGeocoordinates(Point coordinates)booleanequals(Object o)static TweetGeofromJson(String jsonString)Create an instance of TweetGeo given an JSON stringPointgetCoordinates()Get coordinatesStringgetPlaceId()The identifier for this placeinthashCode()TweetGeoplaceId(String placeId)voidsetCoordinates(Point coordinates)voidsetPlaceId(String placeId)StringtoJson()Convert an instance of TweetGeo to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_COORDINATES
public static final String SERIALIZED_NAME_COORDINATES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PLACE_ID
public static final String SERIALIZED_NAME_PLACE_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setCoordinates
public void setCoordinates(Point coordinates)
-
setPlaceId
public void setPlaceId(String placeId)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
-
-