mobi.voiceassistant.client.model
Class City

java.lang.Object
  extended by mobi.voiceassistant.client.model.RemoteModel
      extended by mobi.voiceassistant.client.model.Location
          extended by mobi.voiceassistant.client.model.City
All Implemented Interfaces:
Parcelable, Comparable<City>

public class City
extends Location
implements Comparable<City>

Created with IntelliJ IDEA. User: morfeusys Date: 31.01.13 Time: 13:31


Nested Class Summary
static class City.Converter
           
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
 String countryCode
           
static Parcelable.Creator<City> CREATOR
           
 int population
           
 String timezone
           
static String TOKEN_CITY
           
static String TYPE_CITY
           
 
Fields inherited from class mobi.voiceassistant.client.model.Location
lat, lng, QUERY_PARAM_ADDRESS, QUERY_PARAM_LAT, QUERY_PARAM_LNG, 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
protected City(Parcel parcel)
           
  City(String id, String name, double lat, double lng, String timezone, String countryCode, int population)
           
 
Method Summary
protected  void appendJsonObject(JSONStringer stringer)
           
 int compareTo(City city)
           
 Token getToken()
           
 void writeToParcel(Parcel parcel, int i)
           
 
Methods inherited from class mobi.voiceassistant.client.model.Location
fromString, getLLString, toAndroidLocation
 
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_CITY

public static final String TOKEN_CITY
See Also:
Constant Field Values

TYPE_CITY

public static final String TYPE_CITY
See Also:
Constant Field Values

timezone

public final String timezone

countryCode

public final String countryCode

population

public final int population

CREATOR

public static final Parcelable.Creator<City> CREATOR
Constructor Detail

City

public City(String id,
            String name,
            double lat,
            double lng,
            String timezone,
            String countryCode,
            int population)

City

protected City(Parcel parcel)
Method Detail

writeToParcel

public void writeToParcel(Parcel parcel,
                          int i)
Specified by:
writeToParcel in interface Parcelable
Overrides:
writeToParcel in class Location

compareTo

public int compareTo(City city)
Specified by:
compareTo in interface Comparable<City>

getToken

public Token getToken()
Overrides:
getToken in class Location

appendJsonObject

protected void appendJsonObject(JSONStringer stringer)
                         throws JSONException
Overrides:
appendJsonObject in class Location
Throws:
JSONException