public class VKApiMessage extends VKApiModel implements Identifiable, android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
VKAttachments |
attachments
List of media-attachments;
|
java.lang.String |
body
Body of the message.
|
static android.os.Parcelable.Creator<VKApiMessage> |
CREATOR |
long |
date
Date (in Unix time) when the message was sent.
|
boolean |
deleted
Whether the message is deleted (false — no, true — yes).
|
boolean |
emoji
Whether the message contains smiles (false — no, true — yes).
|
VKList<VKApiMessage> |
fwd_messages
Array of forwarded messages (if any).
|
int |
id
Message ID.
|
boolean |
out
Message type (false — received, true — sent).
|
boolean |
read_state
Message status (false — not read, true — read).
|
java.lang.String |
title
Title of message or chat.
|
int |
user_id
For an incoming message, the user ID of the author.
|
fields| Constructor and Description |
|---|
VKApiMessage()
Creates empty Country instance.
|
VKApiMessage(org.json.JSONObject from) |
VKApiMessage(android.os.Parcel in)
Creates a Message 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").
|
VKApiMessage |
parse(org.json.JSONObject source)
Fills a Message instance from JSONObject.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getTag, getTag, setTag, setTagpublic int id
public int user_id
public long date
public boolean read_state
public boolean out
public java.lang.String title
public java.lang.String body
public VKAttachments attachments
public VKList<VKApiMessage> fwd_messages
public boolean emoji
public boolean deleted
public static android.os.Parcelable.Creator<VKApiMessage> CREATOR
public VKApiMessage(org.json.JSONObject from)
throws org.json.JSONException
org.json.JSONExceptionpublic VKApiMessage(android.os.Parcel in)
public VKApiMessage()
public VKApiMessage parse(org.json.JSONObject source) throws org.json.JSONException
parse in class VKApiModelsource - 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