public class VKApiDialog extends VKApiModel implements Identifiable, android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<VKApiDialog> |
CREATOR |
VKApiMessage |
message
The first message dialog.
|
int |
unread
Flag, either 1 or 0
|
fields| Constructor and Description |
|---|
VKApiDialog()
Creates empty Dialog instance.
|
VKApiDialog(org.json.JSONObject from) |
VKApiDialog(android.os.Parcel in)
Creates an Dialog 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").
|
VKApiDialog |
parse(org.json.JSONObject from)
Fills an dialog object from server response.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getTag, getTag, setTag, setTagpublic int unread
public VKApiMessage message
public static android.os.Parcelable.Creator<VKApiDialog> CREATOR
public VKApiDialog(org.json.JSONObject from)
throws org.json.JSONException
org.json.JSONExceptionpublic VKApiDialog(android.os.Parcel in)
public VKApiDialog()
public VKApiDialog parse(org.json.JSONObject from) throws org.json.JSONException
parse in class VKApiModelfrom - server API object.org.json.JSONException - if any critical error occurred while parsing.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