public class LocationMessage extends MessageData
MessageSendRequest object.| Constructor and Description |
|---|
LocationMessage(java.lang.String title,
java.lang.String address,
java.lang.Double latitude,
java.lang.Double longitude)
Constructs an
LocationMessage object. |
| Modifier and Type | Method and Description |
|---|---|
Type |
getType() |
JSONObject |
toJsonObject() |
public LocationMessage(@NonNull
java.lang.String title,
@NonNull
java.lang.String address,
@NonNull
java.lang.Double latitude,
@NonNull
java.lang.Double longitude)
LocationMessage object.title - Required. The title of the location.address - Required. The address of the location.latitude - Required. The latitude of the location.longitude - Required. The longitude of the location.@NonNull public Type getType()
getType in class MessageData@NonNull
public JSONObject toJsonObject()
throws JSONException
toJsonObject in interface JsonabletoJsonObject in class MessageDataJSONException