public static final class CurrentlyPlayingContext.Builder extends AbstractModelObject.Builder
CurrentlyPlayingContext instances.| Constructor and Description |
|---|
Builder() |
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 item. 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(IPlaylistItem item)
item - If something is currently playing.CurrentlyPlayingContext.Builder.public CurrentlyPlayingContext.Builder setCurrentlyPlayingType(CurrentlyPlayingType currentlyPlayingType)
currentlyPlayingType - The type of the currently playing item.CurrentlyPlayingContext.Builder.public CurrentlyPlayingContext.Builder setActions(Actions actions)
actions - A Actions object which contains a Disallows object.CurrentlyPlayingContext.Builder.public CurrentlyPlayingContext build()
IModelObject.BuilderCopyright © 2020. All rights reserved.