Class TrackLink
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject
-
- com.wrapper.spotify.model_objects.specification.TrackLink
-
- All Implemented Interfaces:
IModelObject
public class TrackLink extends AbstractModelObject
Retrieve information about Track Link objects by building instances from this class.
Track Link objects contain information about originally requested tracks, when the given track is not available in your market region.- See Also:
- Spotify: Track Relinking Guide
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTrackLink.BuilderBuilder class for buildingTrackLinkinstances.static classTrackLink.JsonUtilJsonUtil class for buildingTrackLinkinstances.-
Nested classes/interfaces inherited from interface com.wrapper.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrackLink.Builderbuilder()Create a builder for building an instance of a model object.ExternalUrlgetExternalUrls()Get the external URLs of the track.
Example: Spotify-URL.StringgetHref()Get the Spotify Web API endpoint URL of the track.StringgetId()Get the Spotify ID of the track.ModelObjectTypegetType()Get the model object type, which should be a "track" in this case.StringgetUri()Get the Spotify URI of the track.
-
-
-
Method Detail
-
getExternalUrls
public ExternalUrl getExternalUrls()
Get the external URLs of the track.
Example: Spotify-URL.- Returns:
- Known external URLs for this track.
-
getHref
public String getHref()
Get the Spotify Web API endpoint URL of the track.- Returns:
- A link to the Web API endpoint providing full details of the track.
-
getId
public String getId()
Get the Spotify ID of the track.- Returns:
- A Spotify track ID.
-
getType
public ModelObjectType getType()
Get the model object type, which should be a "track" in this case.- Returns:
- The object type: "track".
-
getUri
public String getUri()
Get the Spotify URI of the track.- Returns:
- The Spotify URI for the track.
-
builder
public TrackLink.Builder builder()
Description copied from interface:IModelObjectCreate a builder for building an instance of a model object.
The type of the builder and its methods depend on its corresponding implementation.- Returns:
- A builder object.
-
-