Class PlaylistSimplified
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.PlaylistSimplified
- All Implemented Interfaces:
Serializable
,IModelObject
,ISearchModelObject
Retrieve information about
simplified Playlist objects by building instances from this class.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder class for buildingPlaylistSimplified
instances.static final class
JsonUtil class for buildingPlaylistSimplified
instances.Nested classes/interfaces inherited from interface se.michaelthelin.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder for building an instance of a model object.boolean
Get the external URLs of the playlist.getHref()
Get the full Spotify API endpoint url of the playlist.getId()
Get the Spotify ID of a playlist.Image[]
Images for the playlist.Check whether the playlist is collaborative or not.Check whether a playlist is available in public or is private.getName()
Get the name of a playlist.getOwner()
Get the owners user object of a playlist.Get the snapshot ID, the version identifier for the current playlist.Get information about the tracks of the playlist.getType()
Get the model object type.getUri()
Get the Spotify URI of a playlist.int
hashCode()
toString()
Returns a String representation of this model object in the style:
-
Method Details
-
getIsCollaborative
Check whether the playlist is collaborative or not.- Returns:
true
if the owner allows other users to modify the playlist,false
if not.- See Also:
-
getExternalUrls
Get the external URLs of the playlist.
Example: Spotify-URL.- Returns:
- Known external URLs for this playlist.
-
getHref
Get the full Spotify API endpoint url of the playlist.- Returns:
- A link to the Web API endpoint providing full details of the playlist.
-
getId
Get the Spotify ID of a playlist.- Returns:
- The Spotify ID for the playlist.
-
getImages
Images for the playlist. The array may be empty or contain up to three images. The images are returned by size in descending order.
Note: If returned, the source URL for the image is temporary and will expire in less than a day.- Returns:
- An array of images in different sizes.
- See Also:
-
getName
Get the name of a playlist.- Returns:
- Playlist name.
-
getOwner
Get the owners user object of a playlist.- Returns:
- A user object.
-
getIsPublicAccess
Check whether a playlist is available in public or is private.- Returns:
true
the playlist is public,false
the playlist is private,null
the playlist status is not relevant.- See Also:
-
getSnapshotId
Get the snapshot ID, the version identifier for the current playlist. Can be supplied in other requests to target a specific playlist version.- Returns:
- The version identifier for the current playlist.
- See Also:
-
getTracks
Get information about the tracks of the playlist.- Returns:
- Information about the tracks of the playlist.
-
getType
Get the model object type. In this case "playlist".- Returns:
- The object type: "playlist"
-
getUri
Get the Spotify URI of a playlist.- Returns:
- Spotify playlist URI.
-
toString
Description copied from class:AbstractModelObject
Returns a String representation of this model object in the style:ModelObject(attr1=value1, attr2=value2, ...)
- Specified by:
toString
in classAbstractModelObject
-
builder
Description copied from interface:IModelObject
Create a builder for building an instance of a model object.
The type of the builder and its methods depend on its corresponding implementation.- Specified by:
builder
in interfaceIModelObject
- Returns:
- A builder object.
-
equals
-
hashCode
public int hashCode()
-