public class PlaylistResource extends Resource<HashMap<String,Object>>
Constructor and Description |
---|
PlaylistResource(Identification provider)
creates a new Resource.
|
PlaylistResource(Identification provider,
Identification consumer)
creates a new Resource.
|
PlaylistResource(Identification provider,
Playlist playlist)
creates a new Resource.
|
PlaylistResource(Identification provider,
Playlist playlist,
Identification consumer)
creates a new Resource.
|
Modifier and Type | Method and Description |
---|---|
static Optional<Playlist> |
getPlaylist(EventModel eventModel)
gets the first playlist if found in the EventModel
|
getConsumer, getID, getProvider, getResource, getResourceID, hasProvider, setConsumer, setProvider, setResource, toList, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isOwner
public static final String ID
public PlaylistResource(Identification provider)
provider
- the Provider of the Resourcepublic PlaylistResource(Identification provider, Playlist playlist)
provider
- the Provider of the Resourceplaylist
- the resourcepublic PlaylistResource(Identification provider, Identification consumer)
provider
- the Provider of the Resourceconsumer
- the ID of the Consumerpublic PlaylistResource(Identification provider, Playlist playlist, Identification consumer)
provider
- the Provider of the Resourceplaylist
- the resourceconsumer
- the ID of the Consumerpublic static Optional<Playlist> getPlaylist(EventModel eventModel)
eventModel
- the EventModelCopyright © 2016. All rights reserved.