IModelObjectpublic class CurrentlyPlayingContext extends AbstractModelObject
| Modifier and Type | Class | 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 | Description |
|---|---|---|
CurrentlyPlayingContext.Builder |
builder() |
Create a builder for building an instance of a model object.
|
Context |
getContext() |
Get the context from where the currently playing track is played from.
|
Device |
getDevice() |
Get the currently active device.
|
Boolean |
getIs_playing() |
Check whether a track is playing on the device or not.
|
Track |
getItem() |
Get the currently playing track, if the device is playing something.
|
Integer |
getProgress_ms() |
Get the progress of the currently playing track.
|
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 Track getItem()
null.public CurrentlyPlayingContext.Builder builder()
IModelObjectCopyright © 2019. All rights reserved.