mobi.voiceassistant.client.model
Class Location
java.lang.Object
mobi.voiceassistant.client.model.RemoteModel
mobi.voiceassistant.client.model.Location
- All Implemented Interfaces:
- Parcelable
- Direct Known Subclasses:
- City
public class Location
- extends RemoteModel
Created with IntelliJ IDEA.
User: morfeusys
Date: 31.01.13
Time: 13:17
TOKEN_POINT
public static final String TOKEN_POINT
- See Also:
- Constant Field Values
QUERY_PARAM_LAT
public static final String QUERY_PARAM_LAT
- See Also:
- Constant Field Values
QUERY_PARAM_LNG
public static final String QUERY_PARAM_LNG
- See Also:
- Constant Field Values
QUERY_PARAM_ADDRESS
public static final String QUERY_PARAM_ADDRESS
- See Also:
- Constant Field Values
lat
public final double lat
lng
public final double lng
CREATOR
public static final Parcelable.Creator<Location> CREATOR
Location
public Location(String id,
String name,
double lat,
double lng)
Location
public Location(double lat,
double lng)
Location
public Location(Location location)
Location
protected Location(Parcel parcel)
writeToParcel
public void writeToParcel(Parcel parcel,
int i)
- Specified by:
writeToParcel
in interface Parcelable
- Overrides:
writeToParcel
in class RemoteModel
getLLString
public String getLLString()
toAndroidLocation
public Location toAndroidLocation()
getToken
public Token getToken()
appendJsonObject
protected void appendJsonObject(JSONStringer stringer)
throws JSONException
- Overrides:
appendJsonObject
in class RemoteModel
- Throws:
JSONException
fromString
public static Location fromString(String ll)