public class NowPlayingResource extends Resource<HashMap<String,Object>>
| Constructor and Description |
|---|
NowPlayingResource(Identification provider)
creates a new Resource.
|
NowPlayingResource(Identification provider,
Identification consumer)
creates a new Resource.
|
NowPlayingResource(Identification provider,
Playlist playlist)
creates a new Resource.
|
NowPlayingResource(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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisOwnerpublic static final String ID
public NowPlayingResource(Identification provider)
provider - the Provider of the Resourcepublic NowPlayingResource(Identification provider, Playlist playlist)
provider - the Provider of the Resourceplaylist - the resourcepublic NowPlayingResource(Identification provider, Identification consumer)
provider - the Provider of the Resourceconsumer - the ID of the Consumerpublic NowPlayingResource(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.