public class VKApiNote extends VKAttachments.VKApiAttachment implements Identifiable, android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
int |
comments
Number of comments.
|
static android.os.Parcelable.Creator<VKApiNote> |
CREATOR |
long |
date
Date (in Unix time) when the note was created.
|
int |
id
Note ID, positive number
|
int |
read_comments
Number of read comments (only if owner_id is the current user).
|
java.lang.String |
text
Note text.
|
java.lang.String |
title
Note title.
|
int |
user_id
Note owner ID.
|
java.lang.String |
view_url
Note URL.
|
fields| Constructor and Description |
|---|
VKApiNote()
Creates empty Note instance.
|
VKApiNote(org.json.JSONObject from) |
VKApiNote(android.os.Parcel in)
Creates a Note 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").
|
java.lang.String |
getType() |
VKApiNote |
parse(org.json.JSONObject source)
Fills a Note instance from JSONObject.
|
java.lang.CharSequence |
toAttachmentString()
Convert attachment to special string to attach it to the post, message or comment.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getTag, getTag, setTag, setTagpublic int id
public int user_id
public java.lang.String title
public java.lang.String text
public long date
public int comments
public int read_comments
public java.lang.String view_url
public static android.os.Parcelable.Creator<VKApiNote> CREATOR
public VKApiNote(org.json.JSONObject from)
throws org.json.JSONException
org.json.JSONExceptionpublic VKApiNote(android.os.Parcel in)
public VKApiNote()
public VKApiNote parse(org.json.JSONObject source)
parse in class VKApiModelsource - server API object.public int getId()
IdentifiablegetId in interface Identifiablepublic java.lang.CharSequence toAttachmentString()
VKAttachments.VKApiAttachmenttoAttachmentString in class VKAttachments.VKApiAttachmentpublic java.lang.String getType()
getType in class VKAttachments.VKApiAttachmentpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable