public class VKApiWikiPage extends VKAttachments.VKApiAttachment implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
long |
created
Page creation date.
|
static android.os.Parcelable.Creator<VKApiWikiPage> |
CREATOR |
int |
creator_id
ID of the page creator.
|
boolean |
current_user_can_edit
Whether a user can edit page text (false — cannot, true — can).
|
boolean |
current_user_can_edit_access
Whether a user can edit page access permissions (false — cannot, true — can).
|
long |
edited
Date of the last change.
|
int |
editor_id
ID of the last user who edited the page.
|
int |
group_id
ID of the group the wiki page belongs to;
|
int |
id
Wiki page ID;
|
java.lang.String |
parent
Title of the parent page for navigation, if any.
|
java.lang.String |
parent2
Title of the second parent page for navigation, if any.
|
java.lang.String |
source
Text of the wiki page.
|
java.lang.String |
title
Wiki page name.
|
int |
who_can_edit
Who can edit the wiki page (0 — only community managers, 1 — only community members, 2 — all users).
|
int |
who_can_view
Who can view the wiki page(0 — only community managers, 1 — only community members, 2 — all users).
|
fields| Constructor and Description |
|---|
VKApiWikiPage()
Creates empty WikiPage instance.
|
VKApiWikiPage(org.json.JSONObject from) |
VKApiWikiPage(android.os.Parcel in)
Creates a WikiPage 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() |
VKApiWikiPage |
parse(org.json.JSONObject source)
Fills a WikiPage 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 group_id
public int creator_id
public java.lang.String title
public java.lang.String source
public boolean current_user_can_edit
public boolean current_user_can_edit_access
public int who_can_view
public int who_can_edit
public int editor_id
public long edited
public long created
public java.lang.String parent
public java.lang.String parent2
public static android.os.Parcelable.Creator<VKApiWikiPage> CREATOR
public VKApiWikiPage(org.json.JSONObject from)
throws org.json.JSONException
org.json.JSONExceptionpublic VKApiWikiPage(android.os.Parcel in)
public VKApiWikiPage()
public VKApiWikiPage parse(org.json.JSONObject source)
parse in class VKApiModelsource - server API object.public 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.Parcelablepublic int getId()
IdentifiablegetId in interface Identifiable