Class SimplifiedTrack
- java.lang.Object
-
- de.sonallux.spotify.api.models.BaseObject
-
- de.sonallux.spotify.api.models.SimplifiedTrack
-
public class SimplifiedTrack extends BaseObject
-
-
Field Summary
Fields Modifier and Type Field Description List<SimplifiedArtist>artistsThe artists who performed the track.List<String>availableMarketsA list of the countries in which the track can be played, identified by their ISO 3166-1 alpha-2 code.intdiscNumberThe disc number (usually1unless the album consists of more than one disc).intdurationMsThe track length in milliseconds.booleanexplicitWhether or not the track has explicit lyrics (true= yes it does;false= no it does not OR unknown).ExternalUrlexternalUrlsExternal URLs for this track.booleanisLocalWhether or not the track is from a local file.booleanisPlayablePart of the response when Track Relinking is applied.LinkedTracklinkedFromPart of the response when Track Relinking is applied and is only part of the response if the track linking, in fact, exists.StringnameThe name of the track.StringpreviewUrlA URL to a 30 second preview (MP3 format) of the track.TrackRestrictionrestrictionsIncluded in the response when a content restriction is applied.inttrackNumberThe number of the track.-
Fields inherited from class de.sonallux.spotify.api.models.BaseObject
href, id, type, uri
-
-
Constructor Summary
Constructors Constructor Description SimplifiedTrack()
-
-
-
Field Detail
-
artists
public List<SimplifiedArtist> artists
The artists who performed the track. Each artist object includes a link in
hrefto more detailed information about the artist.
-
availableMarkets
public List<String> 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 discNumber
The disc number (usually
1unless the album consists of more than one disc).
-
durationMs
public int durationMs
The track length in milliseconds.
-
explicit
public boolean explicit
Whether or not the track has explicit lyrics (
true= yes it does;false= no it does not OR unknown).
-
externalUrls
public ExternalUrl externalUrls
External URLs for this track.
-
isLocal
public boolean isLocal
Whether or not the track is from a local file.
-
isPlayable
public boolean isPlayable
Part of the response when Track Relinking is applied. If
true, the track is playable in the given market. Otherwisefalse.
-
linkedFrom
public LinkedTrack linkedFrom
Part of the response when Track Relinking is applied and is only part of the response if the track linking, in fact, exists. The requested track has been replaced with a different track. The track in the
linked_fromobject contains information about the originally requested track.
-
name
public String name
The name of the track.
-
previewUrl
public String previewUrl
A URL to a 30 second preview (MP3 format) of the track.
-
restrictions
public TrackRestriction restrictions
Included in the response when a content restriction is applied. See Restriction Object for more details.
-
trackNumber
public int trackNumber
The number of the track. If an album has several discs, the track number is the number on the specified disc.
-
-