public class Playlists extends Model
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PLAYLIST_BOX
The constant that identifies the "box" playlist.
|
static java.lang.String |
PLAYLIST_CLOUD
The constant that identifies the "cloud" playlist.
|
static java.lang.String |
PLAYLIST_CUSTOM
The constant that identifies "custom" playlists.
|
static java.lang.String |
PLAYLIST_DROPBOX
The constant that identifies the "dropbox" playlist.
|
static java.lang.String |
PLAYLIST_GDRIVE
The constant that identifies the "gdrive" playlist.
|
static java.lang.String |
PLAYLIST_LOCAL
The constant that identifies the "local" playlist.
|
static java.lang.String |
PLAYLIST_MEGA
The constant that identifies the "mega" playlist.
|
static java.lang.String |
PLAYLIST_OFFLINE
The constant that identifies the "offline" playlist.
|
static java.lang.String |
PLAYLIST_ONERIVE
The constant that identifies the "onedrive" playlist.
|
static java.lang.String |
PLAYLIST_SMART
The constant that identifies "smart" playlists.
|
static java.lang.String |
PLAYLIST_SOUNDCLOUD
The constant that identifies the "soundcloud" playlist.
|
static java.lang.String |
PLAYLIST_YOUTUBE
The constant that identifies the "youtube" playlist.
|
| Constructor and Description |
|---|
Playlists() |
| Modifier and Type | Method and Description |
|---|---|
static Playlist |
getBoxPlaylist(AudioBoxClient audioBoxClient)
Gets the box playlist.
|
static Playlist |
getCloudPlaylist(AudioBoxClient audioBoxClient)
Gets the cloud playlist.
|
static Playlist |
getDropboxPlaylist(AudioBoxClient audioBoxClient)
Gets the dropbox playlist.
|
static Playlist |
getGdrivePlaylist(AudioBoxClient audioBoxClient)
Gets the gdrive playlist.
|
static Playlist |
getLocalPlaylist(AudioBoxClient audioBoxClient)
Gets the local playlist.
|
static Playlist |
getMegaPlaylist(AudioBoxClient audioBoxClient)
Gets the mega playlist
.
|
static Playlist |
getOfflinePlaylist(AudioBoxClient audioBoxClient)
Gets the offline playlist.
|
static Playlist |
getOneDrivePlaylist(AudioBoxClient audioBoxClient)
Gets the skydrive playlist.
|
static java.lang.String |
getPath()
Gets the generic remote resource collection path.
|
java.util.List<Playlist> |
getPlaylists()
Gets playlists.
|
static Playlist |
getSoundcloudPlaylist(AudioBoxClient audioBoxClient)
Gets the soundcloud playlist.
|
static Playlist |
getYoutubePlaylist(AudioBoxClient audioBoxClient)
Gets the youtube playlist.
|
getProp, notifyObservers, setProppublic static final java.lang.String PLAYLIST_LOCAL
public static final java.lang.String PLAYLIST_CLOUD
public static final java.lang.String PLAYLIST_DROPBOX
public static final java.lang.String PLAYLIST_ONERIVE
public static final java.lang.String PLAYLIST_BOX
public static final java.lang.String PLAYLIST_GDRIVE
public static final java.lang.String PLAYLIST_YOUTUBE
public static final java.lang.String PLAYLIST_SOUNDCLOUD
public static final java.lang.String PLAYLIST_MEGA
public static final java.lang.String PLAYLIST_OFFLINE
public static final java.lang.String PLAYLIST_CUSTOM
public static final java.lang.String PLAYLIST_SMART
public static java.lang.String getPath()
public java.util.List<Playlist> getPlaylists()
public static Playlist getLocalPlaylist(AudioBoxClient audioBoxClient) throws java.io.IOException
Gets the local playlist.
NOTE: this method will always make a request against AudioBox, use carefully.
If you want to avoid this behavior consider storing the playlist collection
within your application and use ModelUtil.findPlaylistByType(java.util.List, String)
in combination with the Playlists#PLAYLIST_* constants to get the right playlist from the memory.
audioBoxClient - the AudioBoxClient to use to make the requestAudioBoxException - if any of the remote error exception is detected.java.io.IOException - if any connection problem occurs.AudioBoxExceptionpublic static Playlist getCloudPlaylist(AudioBoxClient audioBoxClient) throws java.io.IOException
Gets the cloud playlist.
NOTE: this method will always make a request against AudioBox, use carefully.
If you want to avoid this behavior consider storing the playlist collection
within your application and use ModelUtil.findPlaylistByType(java.util.List, String)
in combination with the Playlists#PLAYLIST_* constants to get the right playlist from the memory.
audioBoxClient - the AudioBoxClient to use to make the requestAudioBoxException - if any of the remote error exception is detected.java.io.IOException - if any connection problem occurs.AudioBoxExceptionpublic static Playlist getDropboxPlaylist(AudioBoxClient audioBoxClient) throws java.io.IOException
Gets the dropbox playlist.
NOTE: this method will always make a request against AudioBox, use carefully.
If you want to avoid this behavior consider storing the playlist collection
within your application and use ModelUtil.findPlaylistByType(java.util.List, String)
in combination with the Playlists#PLAYLIST_* constants to get the right playlist from the memory.
audioBoxClient - the AudioBoxClient to use to make the requestAudioBoxException - if any of the remote error exception is detected.java.io.IOException - if any connection problem occurs.AudioBoxExceptionpublic static Playlist getOneDrivePlaylist(AudioBoxClient audioBoxClient) throws java.io.IOException
Gets the skydrive playlist.
NOTE: this method will always make a request against AudioBox, use carefully.
If you want to avoid this behavior consider storing the playlist collection
within your application and use ModelUtil.findPlaylistByType(java.util.List, String)
in combination with the Playlists#PLAYLIST_* constants to get the right playlist from the memory.
audioBoxClient - the AudioBoxClient to use to make the requestAudioBoxException - if any of the remote error exception is detected.java.io.IOException - if any connection problem occurs.AudioBoxExceptionpublic static Playlist getBoxPlaylist(AudioBoxClient audioBoxClient) throws java.io.IOException
Gets the box playlist.
NOTE: this method will always make a request against AudioBox, use carefully.
If you want to avoid this behavior consider storing the playlist collection
within your application and use ModelUtil.findPlaylistByType(java.util.List, String)
in combination with the Playlists#PLAYLIST_* constants to get the right playlist from the memory.
audioBoxClient - the AudioBoxClient to use to make the requestAudioBoxException - if any of the remote error exception is detected.java.io.IOException - if any connection problem occurs.AudioBoxExceptionpublic static Playlist getGdrivePlaylist(AudioBoxClient audioBoxClient) throws java.io.IOException
Gets the gdrive playlist.
NOTE: this method will always make a request against AudioBox, use carefully.
If you want to avoid this behavior consider storing the playlist collection
within your application and use ModelUtil.findPlaylistByType(java.util.List, String)
in combination with the Playlists#PLAYLIST_* constants to get the right playlist from the memory.
audioBoxClient - the AudioBoxClient to use to make the requestAudioBoxException - if any of the remote error exception is detected.java.io.IOException - if any connection problem occurs.AudioBoxExceptionpublic static Playlist getYoutubePlaylist(AudioBoxClient audioBoxClient) throws java.io.IOException
Gets the youtube playlist.
NOTE: this method will always make a request against AudioBox, use carefully.
If you want to avoid this behavior consider storing the playlist collection
within your application and use ModelUtil.findPlaylistByType(java.util.List, String)
in combination with the Playlists#PLAYLIST_* constants to get the right playlist from the memory.
audioBoxClient - the AudioBoxClient to use to make the requestAudioBoxException - if any of the remote error exception is detected.java.io.IOException - if any connection problem occurs.AudioBoxExceptionpublic static Playlist getSoundcloudPlaylist(AudioBoxClient audioBoxClient) throws java.io.IOException
Gets the soundcloud playlist.
NOTE: this method will always make a request against AudioBox, use carefully.
If you want to avoid this behavior consider storing the playlist collection
within your application and use ModelUtil.findPlaylistByType(java.util.List, String)
in combination with the Playlists#PLAYLIST_* constants to get the right playlist from the memory.
audioBoxClient - the AudioBoxClient to use to make the requestAudioBoxException - if any of the remote error exception is detected.java.io.IOException - if any connection problem occurs.AudioBoxExceptionpublic static Playlist getMegaPlaylist(AudioBoxClient audioBoxClient) throws java.io.IOException
Gets the mega playlist
.
NOTE: this method will always make a request against AudioBox, use carefully.
If you want to avoid this behavior consider storing the playlist collection
within your application and use ModelUtil.findPlaylistByType(java.util.List, String)
in combination with the Playlists#PLAYLIST_* constants to get the right playlist from the memory.
audioBoxClient - the AudioBoxClient to use to make the requestAudioBoxException - if any of the remote error exception is detected.java.io.IOException - if any connection problem occurs.AudioBoxExceptionpublic static Playlist getOfflinePlaylist(AudioBoxClient audioBoxClient) throws java.io.IOException
Gets the offline playlist.
NOTE: this method will always make a request against AudioBox, use carefully.
If you want to avoid this behavior consider storing the playlist collection
within your application and use ModelUtil.findPlaylistByType(java.util.List, String)
in combination with the Playlists#PLAYLIST_* constants to get the right playlist from the memory.
audioBoxClient - the AudioBoxClient to use to make the requestAudioBoxException - if any of the remote error exception is detected.java.io.IOException - if any connection problem occurs.AudioBoxException