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 class
Geo.CustomTypeAdapterFactory
static class
Geo.TypeEnum
Gets or Sets type
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_BBOX
static String
SERIALIZED_NAME_GEOMETRY
static String
SERIALIZED_NAME_PROPERTIES
static String
SERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description Geo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Geo
addBboxItem(Double bboxItem)
Geo
bbox(List<Double> bbox)
boolean
equals(Object o)
static Geo
fromJson(String jsonString)
Create an instance of Geo given an JSON stringGeo
geometry(Point geometry)
List<Double>
getBbox()
Get bboxPoint
getGeometry()
Get geometryObject
getProperties()
Get propertiesGeo.TypeEnum
getType()
Get typeint
hashCode()
Geo
properties(Object properties)
void
setBbox(List<Double> bbox)
void
setGeometry(Point geometry)
void
setProperties(Object properties)
void
setType(Geo.TypeEnum type)
String
toJson()
Convert an instance of Geo to an JSON stringString
toString()
Geo
type(Geo.TypeEnum type)
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
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
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setGeometry
public void setGeometry(Point geometry)
-
setProperties
public void setProperties(Object properties)
-
type
public Geo type(Geo.TypeEnum type)
-
getType
@Nonnull public Geo.TypeEnum getType()
Get type- Returns:
- type
-
setType
public void setType(Geo.TypeEnum type)
-
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 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
-
-