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

public static final class PlaybackQueue.Builder extends AbstractModelObject.Builder
Builder class for building PlaybackQueue instances.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setCurrentlyPlaying

      public PlaybackQueue.Builder setCurrentlyPlaying(IPlaylistItem currentlyPlaying)
      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

      public PlaybackQueue.Builder setQueue(List<IPlaylistItem> queue)
      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

      public PlaybackQueue 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.