Creates a Deezer track from the data in an API response
the data to use to create the track
Whether the track should be partial
The album that this track is in
The artist of the track
The number of beats per minute
undefined
for partial tracks
The artists that have contributed to the track
undefined
for partial tracks
The number of the disk the track is on
undefined
for partial tracks
The duration of the track in seconds
true
if the track contains any explicit lyrics
The gain of the track
undefined
for partial tracks
The id of the track
Signifies that some properties are not populated
Partial tracks can be populated by calling DeezerTrack.fetch.
true
for tracks in search results and false
if the track was fetched directly or expanded.
URL to a file containing the first 30 seconds of the track
The rank of the track
The release date
undefined
for partial tracks
A shorter version of the title
The title of the track
The position of the track in the album
undefined
for partial tracks
The type, always 'track'
, useful to determine what the deezer function returned
The URL of the track on Deezer
Fetches and populates the missing fields
The property partial will be false
if this method finishes successfully.
A promise with the same track this method was called on.
Converts instances of this class to JSON data
JSON data.
Generated using TypeDoc
Class representing a Deezer track