Class PlaybackQueue.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.special.PlaybackQueue.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
PlaybackQueue
Builder class for building
PlaybackQueue
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setCurrentlyPlaying
(IPlaylistItem currentlyPlaying) The item representing the user's currently playing item setter.setQueue
(List<IPlaylistItem> queue) The items that are in the user's queue for the upcoming playback setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setCurrentlyPlaying
The item representing the user's currently playing item setter.- Parameters:
currentlyPlaying
- The item representing the user's currently playing item.- Returns:
- A
PlaybackQueue.Builder
.
-
setQueue
The items that are in the user's queue for the upcoming playback setter.- Parameters:
queue
- The items that are in the user's queue for the upcoming playback.- Returns:
- A
PlaybackQueue.Builder
.
-
build
Description copied from interface:IModelObject.Builder
Build 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.
-