public class PlaybackStateResource extends Resource<String>
Constructor and Description |
---|
PlaybackStateResource(Identification provider)
creates a new Resource.
|
PlaybackStateResource(Identification provider,
Identification consumer)
creates a new Resource.
|
PlaybackStateResource(Identification provider,
PlaybackState state)
creates a new Resource.
|
PlaybackStateResource(Identification provider,
PlaybackState state,
Identification consumer)
creates a new Resource.
|
Modifier and Type | Method and Description |
---|---|
static Optional<PlaybackState> |
getPlaybackStateFromResource(ResourceModel x)
returns the PlaybackState from the resource
|
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 PlaybackStateResource(Identification provider)
provider
- the Provider of the Resourcepublic PlaybackStateResource(Identification provider, PlaybackState state)
provider
- the Provider of the Resourcestate
- the PlaybackStatepublic PlaybackStateResource(Identification provider, Identification consumer)
provider
- the Provider of the Resourceconsumer
- the ID of the Consumerpublic PlaybackStateResource(Identification provider, PlaybackState state, Identification consumer)
provider
- the Provider of the Resourcestate
- the PlaybackStateconsumer
- the ID of the Consumerpublic static Optional<PlaybackState> getPlaybackStateFromResource(ResourceModel x)
x
- the resourceModelCopyright © 2016. All rights reserved.