public class VKApiCountry extends VKApiModel implements android.os.Parcelable, Identifiable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<VKApiCountry> |
CREATOR |
int |
id
Country ID.
|
java.lang.String |
title
Country name
|
fields| Constructor and Description |
|---|
VKApiCountry()
Creates empty Country instance.
|
VKApiCountry(org.json.JSONObject from) |
VKApiCountry(android.os.Parcel in)
Creates a Country 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").
|
VKApiCountry |
parse(org.json.JSONObject from)
Fills a Country 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 static android.os.Parcelable.Creator<VKApiCountry> CREATOR
public VKApiCountry(org.json.JSONObject from)
throws org.json.JSONException
org.json.JSONExceptionpublic VKApiCountry(android.os.Parcel in)
public VKApiCountry()
public VKApiCountry parse(org.json.JSONObject from)
parse in class VKApiModelfrom - server API object.public int getId()
IdentifiablegetId in interface Identifiablepublic java.lang.String toString()
toString in class java.lang.Objectpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable