Package de.sonallux.spotify.api.models
Class CurrentlyPlayingContext
- java.lang.Object
-
- de.sonallux.spotify.api.models.CurrentlyPlayingContext
-
public class CurrentlyPlayingContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description DisallowsactionsAllows to update the user interface based on which playback actions are available within the current context.ContextcontextA Context Object.StringcurrentlyPlayingTypeThe object type of the currently playing item.DevicedeviceThe device that is currently active.booleanisPlayingIf something is currently playing, returntrue.BaseObjectitemThe currently playing track or episode.intprogressMsProgress into the currently playing track or episode.StringrepeatStateoff, track, contextStringshuffleStateIf shuffle is on or off.inttimestampUnix Millisecond Timestamp when data was fetched.
-
Constructor Summary
Constructors Constructor Description CurrentlyPlayingContext()
-
-
-
Field Detail
-
actions
public Disallows actions
Allows to update the user interface based on which playback actions are available within the current context.
-
context
public Context context
A Context Object. Can be
null.
-
currentlyPlayingType
public String currentlyPlayingType
The object type of the currently playing item. Can be one of
track,episode,adorunknown.
-
device
public Device device
The device that is currently active.
-
isPlaying
public boolean isPlaying
If something is currently playing, return
true.
-
item
public BaseObject item
The currently playing track or episode. Can be
null.
-
progressMs
public int progressMs
Progress into the currently playing track or episode. Can be
null.
-
repeatState
public String repeatState
off, track, context
-
shuffleState
public String shuffleState
If shuffle is on or off.
-
timestamp
public int timestamp
Unix Millisecond Timestamp when data was fetched.
-
-