Exspotify.Structs.Chapter (Exspotify v0.1.0)

View Source

Represents a chapter object from Spotify API.

Summary

Functions

Creates a Chapter struct from a map (typically from JSON).

Types

t()

@type t() :: %Exspotify.Structs.Chapter{
  audio_preview_url: String.t() | nil,
  audiobook: Exspotify.Structs.Audiobook.t() | nil,
  available_markets: [String.t()] | nil,
  chapter_number: integer() | 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_playable: boolean() | 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,
  type: String.t(),
  uri: String.t()
}

Functions

from_map(map)

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

Creates a Chapter struct from a map (typically from JSON).