Exspotify.Structs.Context (Exspotify v0.1.0)

View Source

Represents a context object from Spotify API. Used for playback context (album, playlist, artist, etc.).

Summary

Functions

Creates a Context struct from a map.

Types

t()

@type t() :: %Exspotify.Structs.Context{
  external_urls: Exspotify.Structs.ExternalUrls.t() | nil,
  href: String.t() | nil,
  type: String.t(),
  uri: String.t()
}

Functions

from_map(map)

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

Creates a Context struct from a map.