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_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_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_SOUNDCLOUD
The constant that identifies the "soundcloud" playlist.
|
static java.lang.String |
PLAYLIST_UBUNTU
The constant that identifies the "ubuntu" 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(Client client)
Gets the box playlist.
|
static Playlist |
getCloudPlaylist(Client client)
Gets the cloud playlist.
|
static Playlist |
getDropboxPlaylist(Client client)
Gets the dropbox playlist.
|
static Playlist |
getGdrivePlaylist(Client client)
Gets the gdrive playlist.
|
static Playlist |
getLocalPlaylist(Client client)
Gets the local playlist.
|
static Playlist |
getOfflinePlaylist(Client client)
Gets the offline playlist.
|
static Playlist |
getOneDrivePlaylist(Client client)
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(Client client)
Gets the soundcloud playlist.
|
static Playlist |
getUbuntuPlaylist(Client client)
Gets the ubuntu playlist
.
|
static Playlist |
getYoutubePlaylist(Client client)
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_UBUNTU
public static final java.lang.String PLAYLIST_OFFLINE
public static java.lang.String getPath()
public java.util.List<Playlist> getPlaylists()
public static Playlist getLocalPlaylist(Client client) 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.
client - the Client 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(Client client) 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.
client - the Client 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(Client client) 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.
client - the Client 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(Client client) 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.
client - the Client 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(Client client) 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.
client - the Client 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(Client client) 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.
client - the Client 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(Client client) 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.
client - the Client 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(Client client) 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.
client - the Client 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 getUbuntuPlaylist(Client client) throws java.io.IOException
Gets the ubuntu 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.
client - the Client 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(Client client) 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.
client - the Client to use to make the requestAudioBoxException - if any of the remote error exception is detected.java.io.IOException - if any connection problem occurs.AudioBoxException