public class VKApiOwner extends VKApiModel implements Identifiable, android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<VKApiOwner> |
CREATOR |
int |
id
User or group ID.
|
fields| Constructor and Description |
|---|
VKApiOwner()
Creates an owner with empty ID.
|
VKApiOwner(int id)
Creates according with given ID.
|
VKApiOwner(org.json.JSONObject from) |
VKApiOwner(android.os.Parcel in)
Creates an owner 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").
|
VKApiOwner |
parse(org.json.JSONObject from)
Fills an owner from JSONObject
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getTag, getTag, setTag, setTagpublic int id
public static android.os.Parcelable.Creator<VKApiOwner> CREATOR
public VKApiOwner()
public VKApiOwner(org.json.JSONObject from)
throws org.json.JSONException
org.json.JSONExceptionpublic VKApiOwner(int id)
public VKApiOwner(android.os.Parcel in)
public VKApiOwner 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.Parcelable