Class CurrentlyPlayingContext.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.miscellaneous.CurrentlyPlayingContext.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
CurrentlyPlayingContext
Builder class for building
CurrentlyPlayingContext instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a model object with the information set in the builder object.setActions(Actions actions) setContext(Context context) setCurrentlyPlayingType(CurrentlyPlayingType currentlyPlayingType) setIs_playing(Boolean is_playing) setItem(IPlaylistItem item) setProgress_ms(Integer progress_ms) setRepeat_state(String repeat_state) setShuffle_state(Boolean shuffle_state) setSmart_shuffle(Boolean smart_shuffle) setTimestamp(Long timestamp)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setDevice
-
setRepeat_state
-
setShuffle_state
-
setContext
-
setTimestamp
-
setProgress_ms
-
setIs_playing
-
setItem
-
setCurrentlyPlayingType
public CurrentlyPlayingContext.Builder setCurrentlyPlayingType(CurrentlyPlayingType currentlyPlayingType) -
setActions
-
setSmart_shuffle
-
build
Description copied from interface:IModelObject.BuilderBuild a model object with the information set in the builder object.
The type of the model object and its methods depend on its corresponding implementation.- Returns:
- A model object.
-