public class LocationAttachment extends java.lang.Object implements MsgAttachment
Constructor and Description |
---|
LocationAttachment() |
LocationAttachment(java.lang.String attach) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Get the description of the location
|
double |
getLatitude()
Get the latitude
|
double |
getLongitude()
Get the longitude
|
void |
setAddress(java.lang.String address)
Set the description of a location
|
void |
setLatitude(double latitude)
Set the latitude
|
void |
setLongitude(double longitude)
Set the longitude
|
java.lang.String |
toJson(boolean send)
Serialize message attachment to strings and store the strings in the message database or send them to the server.
|
public LocationAttachment()
public LocationAttachment(java.lang.String attach)
public double getLatitude()
public void setLatitude(double latitude)
latitude
- The latitudepublic double getLongitude()
public void setLongitude(double longitude)
longitude
- The longitudepublic java.lang.String getAddress()
public void setAddress(java.lang.String address)
address
- public java.lang.String toJson(boolean send)
MsgAttachment
toJson
in interface MsgAttachment
send
- If attachments are required to be stored in local storage and not to be sent to the server. The parameter can be specified.