public class VKApiVideo 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.
|
int |
album_id
Video album ID.
|
boolean |
can_comment
Whether the current user can comment on the video
|
boolean |
can_repost
Whether the current user can repost this video
|
int |
comments
Number of comments on the video.
|
static android.os.Parcelable.Creator<VKApiVideo> |
CREATOR |
long |
date
Date when the video was added, as unixtime.
|
java.lang.String |
description
Text describing video.
|
int |
duration
Duration of the video in seconds.
|
java.lang.String |
external
URL of the external video link.
|
int |
id
Video ID.
|
int |
likes
Number of likes on the video.
|
java.lang.String |
link
String with video+vid key.
|
java.lang.String |
mp4_1080
URL of video with height of 1080 pixels.
|
java.lang.String |
mp4_240
URL of video with height of 240 pixels.
|
java.lang.String |
mp4_360
URL of video with height of 360 pixels.
|
java.lang.String |
mp4_480
URL of video with height of 480 pixels.
|
java.lang.String |
mp4_720
URL of video with height of 720 pixels.
|
int |
owner_id
Video owner ID.
|
VKPhotoSizes |
photo
Array of all photos.
|
java.lang.String |
photo_130
URL of the video cover image with the size of 130x98px.
|
java.lang.String |
photo_320
URL of the video cover image with the size of 320x240px.
|
java.lang.String |
photo_640
URL of the video cover image with the size of 640x480px (if available).
|
java.lang.String |
player
URL of the page with a player that can be used to play a video in the browser.
|
int |
privacy_comment
Privacy to comment of this video.
|
int |
privacy_view
Privacy to view of this video.
|
boolean |
repeat
Information whether the the video should be repeated.
|
java.lang.String |
title
Video title.
|
boolean |
user_likes
Information whether the current user liked the video.
|
int |
views
Number of views of the video.
|
fields| Constructor and Description |
|---|
VKApiVideo()
Creates empty Video instance.
|
VKApiVideo(org.json.JSONObject from) |
VKApiVideo(android.os.Parcel in)
Creates a Video 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() |
VKApiVideo |
parse(org.json.JSONObject from)
Fills a Video 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 int album_id
public java.lang.String title
public java.lang.String description
public int duration
public java.lang.String link
public long date
public int views
public java.lang.String player
public java.lang.String photo_130
public java.lang.String photo_320
public java.lang.String photo_640
public VKPhotoSizes photo
public java.lang.String access_key
public int comments
public boolean can_comment
public boolean can_repost
public boolean user_likes
public boolean repeat
public int likes
public int privacy_view
public int privacy_comment
public java.lang.String mp4_240
public java.lang.String mp4_360
public java.lang.String mp4_480
public java.lang.String mp4_720
public java.lang.String mp4_1080
public java.lang.String external
public static android.os.Parcelable.Creator<VKApiVideo> CREATOR
public VKApiVideo(org.json.JSONObject from)
throws org.json.JSONException
org.json.JSONExceptionpublic VKApiVideo(android.os.Parcel in)
public VKApiVideo()
public VKApiVideo parse(org.json.JSONObject from)
parse in class VKApiModelfrom - 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 java.lang.String toString()
toString in class java.lang.Objectpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable