mobi.voiceassistant.client.model
Class Location

java.lang.Object
  extended by mobi.voiceassistant.client.model.RemoteModel
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<Location> CREATOR
           
 double lat
           
 double lng
           
static String QUERY_PARAM_ADDRESS
           
static String QUERY_PARAM_LAT
           
static String QUERY_PARAM_LNG
           
static String TOKEN_POINT
           
 
Fields inherited from class mobi.voiceassistant.client.model.RemoteModel
id, JSON_DATA, name
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
  Location(double lat, double lng)
           
  Location(Location location)
           
protected Location(Parcel parcel)
           
  Location(String id, String name, double lat, double lng)
           
 
Method Summary
protected  void appendJsonObject(JSONStringer stringer)
           
static Location fromString(String ll)
           
 String getLLString()
           
 Token getToken()
           
 Location toAndroidLocation()
           
 void writeToParcel(Parcel parcel, int i)
           
 
Methods inherited from class mobi.voiceassistant.client.model.RemoteModel
describeContents, equals, hashCode, ids, toJson
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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)