Interface IPlaylistItem
- All Superinterfaces:
IModelObject, Serializable
- All Known Implementing Classes:
Episode, EpisodeSimplified, Track, TrackSimplified
-
Nested Class Summary
Nested classes/interfaces inherited from interface IModelObject
IModelObject.Builder, IModelObject.IJsonUtil<T> -
Method Summary
Modifier and TypeMethodDescriptionGet the duration of this playlist item in milliseconds.Get the external URLs of the playlist item.
Example: Spotify-URL.getHref()Get the full Spotify Web API endpoint URL of the playlist item.getId()Get the Spotify ID of the playlist item.getName()Get the name of the playlist item.getType()Get the type of the IPlaylistItem.getUri()Get the Spotify playlist item URI.Methods inherited from interface IModelObject
builder
-
Method Details
-
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
-
getType
ModelObjectType getType()Get the type of the IPlaylistItem. Possible values:ModelObjectType.TRACKorModelObjectType.EPISODE- Returns:
- The type of the IPlaylistItem.
-
getUri
-