public abstract class VKApiModel
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
org.json.JSONObject |
fields |
| Constructor and Description |
|---|
VKApiModel()
Creates empty model
|
VKApiModel(org.json.JSONObject from) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getTag()
Returns this model's tag.
|
java.lang.Object |
getTag(int key)
Returns the tag associated with this model and the specified key.
|
VKApiModel |
parse(org.json.JSONObject response)
Parses object from source.
|
void |
setTag(int key,
java.lang.Object tag)
Sets a tag associated with this model and a key.
|
void |
setTag(java.lang.Object tag)
Sets the tag associated with this model.
|
public VKApiModel()
public VKApiModel(org.json.JSONObject from)
throws org.json.JSONException
org.json.JSONExceptionpublic java.lang.Object getTag()
setTag(Object),
getTag(int)public void setTag(java.lang.Object tag)
tag - an Object to tag the model withgetTag(),
setTag(int, Object)public java.lang.Object getTag(int key)
key - The key identifying the tagsetTag(int, Object),
getTag()public void setTag(int key,
java.lang.Object tag)
setTag(Object),
getTag(int)public VKApiModel parse(org.json.JSONObject response) throws org.json.JSONException
response - server API object.org.json.JSONException - if any critical error occurred while parsing.