public class VKApiDocument extends VKAttachments.VKApiAttachment implements android.os.Parcelable, Identifiable
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
access_key
An access key using for get information about hidden objects.
|
static android.os.Parcelable.Creator<VKApiDocument> |
CREATOR |
long |
date
Document creation date in milliseconds (current date by default).
|
java.lang.String |
ext
Document extension.
|
int |
id
Document ID.
|
int |
owner_id
ID of the user or group who uploaded the document.
|
VKPhotoSizes |
photo
Array of all photos.
|
java.lang.String |
photo_100
URL of the 100x75px image (if the file is graphical).
|
java.lang.String |
photo_130
URL of the 130x100px image (if the file is graphical).
|
long |
size
Document size (in bytes).
|
java.lang.String |
title
Document title.
|
java.lang.String |
url
Document URL for downloading.
|
fields| Constructor and Description |
|---|
VKApiDocument()
Creates empty Doc instance.
|
VKApiDocument(org.json.JSONObject from) |
VKApiDocument(android.os.Parcel in)
Creates a Doc 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() |
boolean |
isGif() |
boolean |
isImage() |
VKApiDocument |
parse(org.json.JSONObject jo)
Fills a Doc instance from JSONObject.
|
java.lang.CharSequence |
toAttachmentString()
Convert attachment to special string to attach it to the post, message or comment.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getTag, getTag, setTag, setTagpublic int id
public int owner_id
public java.lang.String title
public long size
public java.lang.String ext
public java.lang.String url
public java.lang.String photo_100
public java.lang.String photo_130
public VKPhotoSizes photo
public java.lang.String access_key
public long date
public static android.os.Parcelable.Creator<VKApiDocument> CREATOR
public VKApiDocument(org.json.JSONObject from)
throws org.json.JSONException
org.json.JSONExceptionpublic VKApiDocument(android.os.Parcel in)
public VKApiDocument()
public VKApiDocument parse(org.json.JSONObject jo)
parse in class VKApiModeljo - server API object.public boolean isImage()
public boolean isGif()
public int getId()
IdentifiablegetId in interface Identifiablepublic java.lang.String toString()
toString in class java.lang.Objectpublic 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