Class PlaybackQueue

java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.special.PlaybackQueue
All Implemented Interfaces:
Serializable, IModelObject

public class PlaybackQueue extends AbstractModelObject
Get the list of items that make up the user's queue.
See Also:
  • Method Details

    • getCurrentlyPlaying

      public IPlaylistItem getCurrentlyPlaying()
      Get the user's currently playing item.
      Returns:
      the user's currently playing item
    • getQueue

      public List<IPlaylistItem> getQueue()
      Get the list of items that make up the user's queue.
      Returns:
      The items that are in the user's queue for the upcoming playback.
    • toString

      public String toString()
      Description copied from class: AbstractModelObject
      Returns a String representation of this model object in the style:

      ModelObject(attr1=value1, attr2=value2, ...)

      Specified by:
      toString in class AbstractModelObject
    • builder

      public IModelObject.Builder builder()
      Description copied from interface: IModelObject
      Create a builder for building an instance of a model object.
      The type of the builder and its methods depend on its corresponding implementation.
      Returns:
      A builder object.