public static final class CurrentlyPlaying.Builder extends AbstractModelObject.Builder
CurrentlyPlaying instances.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CurrentlyPlaying |
build()
Build a model object with the information set in the builder object.
|
CurrentlyPlaying.Builder |
setContext(Context context)
The playing context setter.
|
CurrentlyPlaying.Builder |
setIs_playing(Boolean is_playing)
The playing state setter.
|
CurrentlyPlaying.Builder |
setItem(Track item)
The currently playing track setter.
|
CurrentlyPlaying.Builder |
setProgress_ms(Integer progress_ms)
The current track progress setter.
|
CurrentlyPlaying.Builder |
setTimestamp(Long timestamp)
The timestamp setter.
|
public CurrentlyPlaying.Builder setContext(Context context)
context - The context the track was played from. Can be null.CurrentlyPlaying.Builder.public CurrentlyPlaying.Builder setTimestamp(Long timestamp)
timestamp - Unix Millisecond Timestamp when data was fetched.CurrentlyPlaying.Builder.public CurrentlyPlaying.Builder setProgress_ms(Integer progress_ms)
progress_ms - Progress into the currently playing track. Can be null.CurrentlyPlaying.Builder.public CurrentlyPlaying.Builder setIs_playing(Boolean is_playing)
is_playing - If something is currently playing.CurrentlyPlaying.Builder.public CurrentlyPlaying.Builder setItem(Track item)
item - The currently playing track. Can be null.CurrentlyPlaying.Builder.public CurrentlyPlaying build()
IModelObject.BuilderCopyright © 2020. All rights reserved.