Spotify Web API v0.4.0 Spotify.Tracks.TrackFull View Source

A full Track object.

Spotify Docs

Link to this section Summary

Types

t()

A full Track object

Functions

Returns each Object Models’ model for json decoding

Link to this section Types

Link to this type t() View Source
t() :: %Spotify.Tracks.TrackFull{album: Spotify.Tracks.album() | nil, artists: Spotify.Tracks.artists() | nil, available_markets: Spotify.Tracks.available_markets() | nil, disc_number: Spotify.Tracks.disc_number() | nil, duration_ms: Spotify.Tracks.duration_ms() | nil, explicit: Spotify.Tracks.explicit() | nil, external_ids: Spotify.Tracks.external_ids() | nil, external_urls: Spotify.Tracks.external_urls() | nil, href: Spotify.Tracks.href() | nil, id: Spotify.Tracks.id() | nil, is_playable: Spotify.Tracks.is_playable() | nil, linked_from: Spotify.Tracks.linked_from() | nil, name: Spotify.Tracks.name() | nil, popularity: Spotify.Tracks.popularity() | nil, preview_url: Spotify.Tracks.preview_url() | nil, restrictions: Spotify.Tracks.restrictions() | nil, track_number: Spotify.Tracks.track_number() | nil, type: Spotify.Tracks.type() | nil, uri: Spotify.Tracks.uri() | nil}

A full Track object.

Link to this section Functions

Returns each Object Models’ model for json decoding.

This callback is passed into Poison.decode :as option for formatting incoming json as structs. Each Object Model should implement it, and nest other Object Models’ as functions in their own as needed.

Callback implementation for Spotify.ObjectModel.as/0.