Exspotify.Structs.Queue (Exspotify v0.1.0)

View Source

Represents the user's playback queue from Spotify API.

Summary

Functions

Creates a Queue struct from a map.

Types

t()

@type t() :: %Exspotify.Structs.Queue{
  currently_playing:
    Exspotify.Structs.Track.t() | Exspotify.Structs.Episode.t() | nil,
  queue: [Exspotify.Structs.Track.t() | Exspotify.Structs.Episode.t()] | nil
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Creates a Queue struct from a map.