Exspotify.Structs.Episode (Exspotify v0.1.0)

View Source

Represents an episode object from Spotify API.

Summary

Functions

Creates an Episode struct from a map (typically from JSON).

Types

t()

@type t() :: %Exspotify.Structs.Episode{
  audio_preview_url: String.t() | nil,
  description: String.t() | nil,
  duration_ms: integer() | nil,
  explicit: boolean() | nil,
  external_urls: Exspotify.Structs.ExternalUrls.t() | nil,
  href: String.t() | nil,
  html_description: String.t() | nil,
  id: String.t(),
  images: [Exspotify.Structs.Image.t()] | nil,
  is_externally_hosted: boolean() | nil,
  is_playable: boolean() | nil,
  language: String.t() | nil,
  languages: [String.t()] | nil,
  name: String.t(),
  release_date: String.t() | nil,
  release_date_precision: String.t() | nil,
  restrictions: map() | nil,
  resume_point: Exspotify.Structs.ResumePoint.t() | nil,
  show: Exspotify.Structs.Show.t() | nil,
  type: String.t(),
  uri: String.t()
}

Functions

from_map(map)

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

Creates an Episode struct from a map (typically from JSON).