public class CurrentlyPlayingContext extends AbstractModelObject
| Modifier and Type | Class and Description |
|---|---|
static class |
CurrentlyPlayingContext.Builder
Builder class for building
CurrentlyPlayingContext instances. |
static class |
CurrentlyPlayingContext.JsonUtil
JsonUtil class for building
CurrentlyPlayingContext instances. |
IModelObject.IJsonUtil<T>| Modifier and Type | Method and Description |
|---|---|
CurrentlyPlayingContext.Builder |
builder()
Create a builder for building an instance of a model object.
|
Actions |
getActions()
Get which playback actions are available within the current context.
|
Context |
getContext()
Get the context from where the currently playing item is played from.
|
CurrentlyPlayingType |
getCurrentlyPlayingType()
Get the type of the currently playing item.
|
Device |
getDevice()
Get the currently active device.
|
Boolean |
getIs_playing()
Check whether a track or episode is playing on the device or not.
|
IPlaylistItem |
getItem()
Get the currently playing track or episode, if the device is playing something.
|
Integer |
getProgress_ms()
Get the progress of the currently playing item.
|
String |
getRepeat_state()
Get the repeat state of the device.
|
Boolean |
getShuffle_state()
Get the shuffle state of the device.
|
Long |
getTimestamp()
Get the Unix timestamp in milliseconds when the time was fetched.
|
public Device getDevice()
public String getRepeat_state()
public Boolean getShuffle_state()
public Context getContext()
null.public Long getTimestamp()
public Integer getProgress_ms()
null.public Boolean getIs_playing()
public IPlaylistItem getItem()
null.public CurrentlyPlayingType getCurrentlyPlayingType()
public Actions getActions()
public CurrentlyPlayingContext.Builder builder()
IModelObjectCopyright © 2020. All rights reserved.