public class VKApiPlace extends VKApiModel implements android.os.Parcelable, Identifiable
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
address
Location address.
|
int |
checkins
Numbers of checkins in this place
|
int |
city_id
ID of the city the place is located in, positive number
|
int |
country_id
ID of the country the place is located in, positive number
|
long |
created
Date (in Unix time) when the location was added
|
static android.os.Parcelable.Creator<VKApiPlace> |
CREATOR |
int |
id
Location ID.
|
double |
latitude
Geographical latitude, in degrees (from -90 to 90).
|
double |
longitude
Geographical longitude, in degrees (from -180 to 180)
|
java.lang.String |
title
Location title.
|
long |
updated
Date (in Unix time) when the location was last time updated
|
fields| Constructor and Description |
|---|
VKApiPlace()
Creates empty Place instance.
|
VKApiPlace(org.json.JSONObject from) |
VKApiPlace(android.os.Parcel in)
Creates a Place instance from Parcel.
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
int |
getId()
Returns unique identifier of this object(usually it's value of JSON field "id").
|
VKApiPlace |
parse(org.json.JSONObject from)
Fills a Place instance from JSONObject.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getTag, getTag, setTag, setTagpublic int id
public java.lang.String title
public double latitude
public double longitude
public long created
public int checkins
public long updated
public int country_id
public int city_id
public java.lang.String address
public static android.os.Parcelable.Creator<VKApiPlace> CREATOR
public VKApiPlace(org.json.JSONObject from)
throws org.json.JSONException
org.json.JSONExceptionpublic VKApiPlace(android.os.Parcel in)
public VKApiPlace()
public VKApiPlace parse(org.json.JSONObject from)
parse in class VKApiModelfrom - server API object.public int getId()
IdentifiablegetId in interface Identifiablepublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic java.lang.String toString()
toString in class java.lang.Object