Package com.twitter.clientlib.model
Class Geo
- java.lang.Object
-
- com.twitter.clientlib.model.Geo
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Geo extends Object
Geo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeo.CustomTypeAdapterFactorystatic classGeo.TypeEnumGets or Sets type
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BBOXstatic StringSERIALIZED_NAME_GEOMETRYstatic StringSERIALIZED_NAME_PROPERTIESstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description Geo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoaddBboxItem(Double bboxItem)Geobbox(List<Double> bbox)booleanequals(Object o)static GeofromJson(String jsonString)Create an instance of Geo given an JSON stringGeogeometry(Point geometry)List<Double>getBbox()Get bboxPointgetGeometry()Get geometryObjectgetProperties()Get propertiesGeo.TypeEnumgetType()Get typeinthashCode()Geoproperties(Object properties)voidsetBbox(List<Double> bbox)voidsetGeometry(Point geometry)voidsetProperties(Object properties)voidsetType(Geo.TypeEnum type)StringtoJson()Convert an instance of Geo to an JSON stringStringtoString()Geotype(Geo.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BBOX
public static final String SERIALIZED_NAME_BBOX
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GEOMETRY
public static final String SERIALIZED_NAME_GEOMETRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROPERTIES
public static final String SERIALIZED_NAME_PROPERTIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public Geo type(Geo.TypeEnum type)
-
getType
@Nonnull public Geo.TypeEnum getType()
Get type- Returns:
- type
-
setType
public void setType(Geo.TypeEnum type)
-
setGeometry
public void setGeometry(Point geometry)
-
setProperties
public void setProperties(Object properties)
-
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 Geo
-
fromJson
public static Geo fromJson(String jsonString) throws IOException
Create an instance of Geo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Geo
- Throws:
IOException- if the JSON string is invalid with respect to Geo
-
toJson
public String toJson()
Convert an instance of Geo to an JSON string- Returns:
- JSON string
-
-