public class VKApiAudio extends VKAttachments.VKApiAttachment implements Identifiable, android.os.Parcelable
| Modifier and Type | Class and Description |
|---|---|
static class |
VKApiAudio.Genre
Audio object genres.
|
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
access_key
An access key using for get information about hidden objects.
|
int |
album_id
ID of the album containing the audio file (if assigned).
|
java.lang.String |
artist
Artist name.
|
static android.os.Parcelable.Creator<VKApiAudio> |
CREATOR |
int |
duration
Duration (in seconds).
|
int |
genre
Genre ID.
|
int |
id
Audio ID.
|
int |
lyrics_id
ID of the lyrics (if available) of the audio file.
|
int |
owner_id
Audio owner ID.
|
java.lang.String |
title
Audio file title.
|
java.lang.String |
url
Link to mp3.
|
fields| Constructor and Description |
|---|
VKApiAudio()
Creates empty Audio instance.
|
VKApiAudio(org.json.JSONObject from) |
VKApiAudio(android.os.Parcel in)
Creates an Audio 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() |
VKApiAudio |
parse(org.json.JSONObject from)
Fills an Audio 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 owner_id
public java.lang.String artist
public java.lang.String title
public int duration
public java.lang.String url
public int lyrics_id
public int album_id
public int genre
public java.lang.String access_key
public static android.os.Parcelable.Creator<VKApiAudio> CREATOR
public VKApiAudio(org.json.JSONObject from)
public VKApiAudio(android.os.Parcel in)
public VKApiAudio()
public VKApiAudio 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 int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable