IModelObject.Builderpublic static final class CurrentlyPlayingContext.Builder extends AbstractModelObject.Builder
CurrentlyPlayingContext instances.| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
CurrentlyPlayingContext |
build() |
Build a model object with the information set in the builder object.
|
CurrentlyPlayingContext.Builder |
setContext(Context context) |
The playing context setter.
|
CurrentlyPlayingContext.Builder |
setDevice(Device device) |
The active device setter.
|
CurrentlyPlayingContext.Builder |
setIs_playing(Boolean is_playing) |
The playing state setter.
|
CurrentlyPlayingContext.Builder |
setItem(Track item) |
The currently playing track setter.
|
CurrentlyPlayingContext.Builder |
setProgress_ms(Integer progress_ms) |
The track progress setter.
|
CurrentlyPlayingContext.Builder |
setRepeat_state(String repeat_state) |
The repeat state setter.
|
CurrentlyPlayingContext.Builder |
setShuffle_state(Boolean shuffle_state) |
The shuffle state setter.
|
CurrentlyPlayingContext.Builder |
setTimestamp(Long timestamp) |
The timestamp setter.
|
public CurrentlyPlayingContext.Builder setDevice(Device device)
device - The device that is currently active.CurrentlyPlayingContext.Builder.public CurrentlyPlayingContext.Builder setRepeat_state(String repeat_state)
repeat_state - The repeat state.CurrentlyPlayingContext.Builder.public CurrentlyPlayingContext.Builder setShuffle_state(Boolean shuffle_state)
shuffle_state - If shuffle is on or off.CurrentlyPlayingContext.Builder.public CurrentlyPlayingContext.Builder setContext(Context context)
context - A Context Object. Can be null.CurrentlyPlayingContext.Builder.public CurrentlyPlayingContext.Builder setTimestamp(Long timestamp)
timestamp - Unix Millisecond Timestamp when data was fetched.CurrentlyPlayingContext.Builder.public CurrentlyPlayingContext.Builder setProgress_ms(Integer progress_ms)
progress_ms - Progress into the currently playing track. Can be null.CurrentlyPlayingContext.Builder.public CurrentlyPlayingContext.Builder setIs_playing(Boolean is_playing)
is_playing - If something is currently playing.CurrentlyPlayingContext.Builder.public CurrentlyPlayingContext.Builder setItem(Track item)
item - If something is currently playing.CurrentlyPlayingContext.Builder.public CurrentlyPlayingContext build()
IModelObject.BuilderCopyright © 2019. All rights reserved.