public class VKApiPhotoAlbum extends VKAttachments.VKApiAttachment implements android.os.Parcelable, Identifiable
| Modifier and Type | Field and Description |
|---|---|
boolean |
can_upload
Whether a user can upload photos to this album(false — cannot, true — can).
|
static java.lang.String |
COVER_M
URL of empty album cover with max width at 130px
|
static java.lang.String |
COVER_S
URL for empty album cover with max width at 75px
|
static java.lang.String |
COVER_X
URL of empty album cover with max width at 604px
|
long |
created
Album creation date (in Unix time).
|
static android.os.Parcelable.Creator<VKApiPhotoAlbum> |
CREATOR |
java.lang.String |
description
Album description.
|
int |
id
Album ID.
|
int |
owner_id
ID of the user or community that owns the album.
|
VKPhotoSizes |
photo
Links to to cover photo.
|
int |
privacy
Privacy settings for the album.
|
int |
size
Number of photos in the album.
|
int |
thumb_id
ID of the photo which is the cover.
|
java.lang.String |
thumb_src
Link to album cover photo.
|
java.lang.String |
title
Album title.
|
long |
updated
Date (in Unix time) the album was last updated.
|
fields| Constructor and Description |
|---|
VKApiPhotoAlbum()
Creates empty PhotoAlbum instance.
|
VKApiPhotoAlbum(org.json.JSONObject from) |
VKApiPhotoAlbum(android.os.Parcel in)
Creates a PhotoAlbum 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 |
isClosed() |
VKApiPhotoAlbum |
parse(org.json.JSONObject from)
Creates a PhotoAlbum 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 static final java.lang.String COVER_S
public static final java.lang.String COVER_M
public static final java.lang.String COVER_X
public int id
public java.lang.String title
public int size
public int privacy
public java.lang.String description
public int owner_id
public boolean can_upload
public long updated
public long created
public int thumb_id
public java.lang.String thumb_src
public VKPhotoSizes photo
public static android.os.Parcelable.Creator<VKApiPhotoAlbum> CREATOR
public VKApiPhotoAlbum(org.json.JSONObject from)
throws org.json.JSONException
org.json.JSONExceptionpublic VKApiPhotoAlbum(android.os.Parcel in)
public VKApiPhotoAlbum()
public VKApiPhotoAlbum parse(org.json.JSONObject from)
parse in class VKApiModelfrom - server API object.public boolean isClosed()
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