spotifywebapipython.models.playerqueueinfo

@export
class PlayerQueueInfo:

Spotify Web API PlayerQueueInfo object.

Information about the user's current playback queue.

PlayerQueueInfo(root: dict = None)

Initializes a new instance of the class.

Arguments:
  • root (dict): Spotify Web API JSON response in dictionary format, used to load object attributes; otherwise, None to not load attributes.
CurrentlyPlaying: object

The currently playing track or episode; can be null.

CurrentlyPlayingType: str

The object type of the currently playing item, or null if nothing is playing.

If not null, it can be one of track, episode, ad or unknown.

Queue: list[object]

The tracks or episodes in the queue. Can be empty.

Will be one of the following: Track or Episode

QueueCount: int

The number of items in the Queue array.

Summary: str

Returns a summary of what is playing.

def ToDictionary(self) -> dict:

Returns a dictionary representation of the class.

def ToString(self) -> str:

Returns a displayable string representation of the class.