Interface IPlaylistItem
-
- All Superinterfaces:
IModelObject,Serializable
public interface IPlaylistItem extends IModelObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface se.michaelthelin.spotify.model_objects.IModelObject
IModelObject.Builder, IModelObject.IJsonUtil<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntegergetDurationMs()Get the duration of this playlist item in milliseconds.ExternalUrlgetExternalUrls()Get the external URLs of the playlist item.
Example: Spotify-URL.StringgetHref()Get the full Spotify Web API endpoint URL of the playlist item.StringgetId()Get the Spotify ID of the playlist item.StringgetName()Get the name of the playlist item.ModelObjectTypegetType()Get the type of the IPlaylistItem.StringgetUri()Get the Spotify playlist item URI.-
Methods inherited from interface se.michaelthelin.spotify.model_objects.IModelObject
builder
-
-
-
-
Method Detail
-
getDurationMs
Integer getDurationMs()
Get the duration of this playlist item in milliseconds.- Returns:
- The playlist item length in milliseconds.
-
getExternalUrls
ExternalUrl getExternalUrls()
Get the external URLs of the playlist item.
Example: Spotify-URL.- Returns:
- Known external URLs for this playlist item.
-
getHref
String getHref()
Get the full Spotify Web API endpoint URL of the playlist item.- Returns:
- A link to the Web API endpoint providing full details of the playlist item.
-
getId
String getId()
Get the Spotify ID of the playlist item.- Returns:
- The Spotify ID for the playlist item.
-
getName
String getName()
Get the name of the playlist item.- Returns:
- playlist item name.
-
getType
ModelObjectType getType()
Get the type of the IPlaylistItem. Possible values:ModelObjectType.TRACKorModelObjectType.EPISODE- Returns:
- The type of the IPlaylistItem.
-
getUri
String getUri()
Get the Spotify playlist item URI.- Returns:
- The Spotify URI for the playlist item.
-
-