public class VKApiComment extends VKApiModel implements Identifiable, android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
VKAttachments |
attachments
Information about attachments in the comments (photos, links, etc.;)
|
boolean |
can_like
Whether the current user can like on the comment.
|
static android.os.Parcelable.Creator<VKApiComment> |
CREATOR |
long |
date
Date when the comment was added as unixtime.
|
int |
from_id
Comment author ID.
|
int |
id
Comment ID, positive number
|
int |
likes
Number of likes on the comment.
|
int |
reply_to_comment
ID of the comment the reply to which is represented by the current comment (if the comment is a reply to another comment).
|
int |
reply_to_user
ID of the user or community to whom the reply is addressed (if the comment is a reply to another comment).
|
java.lang.String |
text
Text of the comment
|
boolean |
user_likes
Information whether the current user liked the comment.
|
fields| Constructor and Description |
|---|
VKApiComment()
Creates empty Comment instance.
|
VKApiComment(org.json.JSONObject from) |
VKApiComment(android.os.Parcel in)
Creates a Comment 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").
|
VKApiComment |
parse(org.json.JSONObject from)
Fills a Comment instance from JSONObject.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getTag, getTag, setTag, setTagpublic int id
public int from_id
public long date
public java.lang.String text
public int reply_to_user
public int reply_to_comment
public int likes
public boolean user_likes
public boolean can_like
public VKAttachments attachments
public static android.os.Parcelable.Creator<VKApiComment> CREATOR
public VKApiComment(org.json.JSONObject from)
public VKApiComment(android.os.Parcel in)
public VKApiComment()
public VKApiComment 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