public class MediaFiles extends Model
| Modifier and Type | Class and Description |
|---|---|
static class |
MediaFiles.MediaCollectionCustomParser
The Media collection custom parser.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JSON_TOKEN
The JSON token of the objects collection.
|
protected EventedModelList<MediaFile> |
media_files
The parsed media files list
|
static java.lang.String |
PARAM_SET
The constant PARAM_SET.
|
static java.lang.String |
PARAM_SINCE
The constant PARAM_SINCE.
|
static java.lang.String |
PARAM_TOKENS
The constant PARAM_TOKENS.
|
| Constructor and Description |
|---|
MediaFiles() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
destroyAll(AudioBoxClient audioBoxClient,
java.util.List<java.lang.String> tokens)
Destroy all media files identified by the tokens in the list.
|
EventedModelList<MediaFile> |
getMediaFiles()
Gets playlists.
|
static java.util.Collection<java.lang.Object> |
newList(java.lang.Object context)
This method is not intended to be used directly, it exists for parsing technical reason.
|
getProp, notifyObservers, setProppublic static final java.lang.String JSON_TOKEN
public static final java.lang.String PARAM_SET
public static final java.lang.String PARAM_SINCE
public static final java.lang.String PARAM_TOKENS
protected EventedModelList<MediaFile> media_files
public EventedModelList<MediaFile> getMediaFiles()
public static boolean destroyAll(AudioBoxClient audioBoxClient, java.util.List<java.lang.String> tokens) throws java.io.IOException
audioBoxClient - the clienttokens - the tokensAudioBoxException - if any of the remote error exception is detected.java.io.IOExceptionpublic static java.util.Collection<java.lang.Object> newList(java.lang.Object context)
It builds a new EventedModelList that is used
by the parser and assigned to the underlying list of the instance of this very class.
...yes, black magic happens! :P
context - the observable parent object (typically a Playlist).