Class TrackLink
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.TrackLink
- All Implemented Interfaces:
Serializable, IModelObject
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.
Track Link objects contain information about originally requested tracks, when the given track is not available in your market region.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class for buildingTrackLinkinstances.static final classJsonUtil class for buildingTrackLinkinstances.Nested classes/interfaces inherited from interface IModelObject
IModelObject.IJsonUtil<T> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder for building an instance of a model object.Get the external URLs of the track.
Example: Spotify-URL.getHref()Get the Spotify Web API endpoint URL of the track.getId()Get the Spotify ID of the track.getType()Get the model object type, which should be a "track" in this case.getUri()Get the Spotify URI of the track.toString()Returns a String representation of this model object in the style:
-
Method Details
-
getExternalUrls
Get the external URLs of the track.
Example: Spotify-URL.- Returns:
- Known external URLs for this track.
-
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
-
getType
Get the model object type, which should be a "track" in this case.- Returns:
- The object type: "track".
-
getUri
-
toString
Description copied from class:AbstractModelObjectReturns a String representation of this model object in the style:ModelObject(attr1=value1, attr2=value2, ...)- Specified by:
toStringin classAbstractModelObject
-
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.
-