Class Track
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe album on which the track appears.The artists who performed the track.A list of the countries in which the track can be played, identified by their ISO 3166-1 alpha-2 code.intThe disc number (usually1unless the album consists of more than one disc).intThe track length in milliseconds.booleanWhether or not the track has explicit lyrics (true= yes it does;false= no it does not OR unknown).Known external IDs for the track.Known external URLs for this track.booleanWhether or not the track is from a local file.booleanPart of the response when Track Relinking is applied.Part of the response when Track Relinking is applied, and the requested track has been replaced with different track.The name of the track.intThe popularity of the track.A link to a 30 second preview (MP3 format) of the track.Included in the response when a content restriction is applied.intThe number of the track.Fields inherited from class de.sonallux.spotify.api.models.BaseObject
href, id, type, uri -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
album
The album on which the track appears. The album object includes a link in
hrefto full information about the album. -
artists
The artists who performed the track. Each artist object includes a link in
hrefto more detailed information about the artist. -
availableMarkets
A list of the countries in which the track can be played, identified by their ISO 3166-1 alpha-2 code.
-
discNumber
public int discNumberThe disc number (usually
1unless the album consists of more than one disc). -
durationMs
public int durationMsThe track length in milliseconds.
-
explicit
public boolean explicitWhether or not the track has explicit lyrics (
true= yes it does;false= no it does not OR unknown). -
externalIds
Known external IDs for the track.
-
externalUrls
Known external URLs for this track.
-
isLocal
public boolean isLocalWhether or not the track is from a local file.
-
isPlayable
public boolean isPlayablePart of the response when Track Relinking is applied. If
true, the track is playable in the given market. Otherwisefalse. -
linkedFrom
Part of the response when Track Relinking is applied, and the requested track has been replaced with different track. The track in the
linked_fromobject contains information about the originally requested track. -
name
The name of the track.
-
popularity
public int popularityThe popularity of the track. The value will be between 0 and 100, with 100 being the most popular.
The popularity of a track is a value between 0 and 100, with 100 being the most popular. The popularity is calculated by algorithm and is based, in the most part, on the total number of plays the track has had and how recent those plays are.
Generally speaking, songs that are being played a lot now will have a higher popularity than songs that were played a lot in the past. Duplicate tracks (e.g. the same track from a single and an album) are rated independently. Artist and album popularity is derived mathematically from track popularity. Note: the popularity value may lag actual popularity by a few days: the value is not updated in real time. -
previewUrl
A link to a 30 second preview (MP3 format) of the track. Can be
null -
restrictions
Included in the response when a content restriction is applied.
-
trackNumber
public int trackNumberThe number of the track. If an album has several discs, the track number is the number on the specified disc.
-
-
Constructor Details
-
Track
public Track()
-