Package com.vonage.client.conversations
Class Location
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.conversations.Location
- All Implemented Interfaces:
Jsonable
Describes parameters for a Location message in
MessageEvent.getLocation().-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for setting Location parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic Location.Builderbuilder()Entry point for constructing an instance of this class.Full location address.Latitude of the location.Longitude of the location.getName()Name of the location.Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Method Details
-
getLongitude
Longitude of the location.- Returns:
- The longitude as a Double, or
nullif unspecified.
-
getLatitude
Latitude of the location.- Returns:
- The latitude as a Double, or
nullif unspecified.
-
getName
Name of the location.- Returns:
- The name, or
nullif unspecified.
-
getAddress
Full location address.- Returns:
- The address as a string, or
nullif unspecified.
-
builder
Entry point for constructing an instance of this class.- Returns:
- A new Builder.
-