IModelObjectpublic class TrackSimplified extends AbstractModelObject
| Modifier and Type | Class | Description |
|---|---|---|
static class |
TrackSimplified.Builder |
Builder class for building
TrackSimplified instances. |
static class |
TrackSimplified.JsonUtil |
JsonUtil class for building
TrackSimplified instances. |
IModelObject.IJsonUtil<T>| Modifier and Type | Method | Description |
|---|---|---|
TrackSimplified.Builder |
builder() |
Create a builder for building an instance of a model object.
|
ArtistSimplified[] |
getArtists() |
Get the artists who performed the track.
|
com.neovisionaries.i18n.CountryCode[] |
getAvailableMarkets() |
Get the country codes of all countries, in which the track is available.
|
Integer |
getDiscNumber() |
Get the disc number of the track in its album.
|
Integer |
getDurationMs() |
Get the duration of the track in milliseconds.
|
ExternalUrl |
getExternalUrls() |
Get the external URLs of the track.
Example: Spotify-URL. |
String |
getHref() |
Get the full Spotify Web API endpoint URL of the track.
|
String |
getId() |
Get the Spotify ID of the
track.
|
Boolean |
getIsExplicit() |
Check whether the track is explicit or not.
|
Boolean |
getIsPlayable() |
Check whether the track is playable in the market, which may has been specified somewhere before requesting it.
|
TrackLink |
getLinkedFrom() |
Get the track link object of the track if
Track Relinking was applied and the requested track has been replaced with a different track.
|
String |
getName() |
Get the name of a track.
|
String |
getPreviewUrl() |
Get a link to a 30 second preview (MP3 format) of the track.
|
Integer |
getTrackNumber() |
Get the track number of the track.
|
ModelObjectType |
getType() |
Get the model object type, which should be a "track" in this case.
|
String |
getUri() |
Get the Spotify track URI.
|
public ArtistSimplified[] getArtists()
href to more detailed
information about the artist.public com.neovisionaries.i18n.CountryCode[] getAvailableMarkets()
public Integer getDiscNumber()
public Integer getDurationMs()
public Boolean getIsExplicit()
true = yes it does; false = no it does not
OR unknown).public ExternalUrl getExternalUrls()
public String getHref()
public String getId()
public Boolean getIsPlayable()
true, the track is playable in the given market. Otherwise false.public TrackLink getLinkedFrom()
linked_from object contains information about the originally requested track.linked_from object contains information about the originally requested track.public String getName()
public String getPreviewUrl()
null if not available.null if not available.public Integer getTrackNumber()
public ModelObjectType getType()
public String getUri()
public TrackSimplified.Builder builder()
IModelObjectCopyright © 2019. All rights reserved.