Interface IPlaylist<T extends IHasTotal>

Type Parameters:
T - The concrete type of the items/tracks metadata object. Playlist uses Paging and PlaylistSimplified uses PlaylistTracksInformation.
All Known Implementing Classes:
Playlist, PlaylistSimplified

public interface IPlaylist<T extends IHasTotal>
Represents the common properties of Spotify Playlist objects (full and simplified).

This interface provides a common base for Playlist and PlaylistSimplified objects.

  • Method Details

    • getIsCollaborative

      Boolean getIsCollaborative()
      Check whether the owner allows other users to modify the playlist.
      Returns:
      true if other users are allowed to modify the playlist, false otherwise.
      See Also:
    • getDescription

      String getDescription()
      Get the description of the playlist.
      Returns:
      The playlist description. Only returned for modified, verified playlists, otherwise null.
    • getExternalUrls

      ExternalUrl getExternalUrls()
      Get the external URLs of the playlist.
      Example: Spotify-URL.
      Returns:
      Known external URLs for this playlist.
    • getHref

      String 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

      String getId()
      Get the Spotify ID of a playlist.
      Returns:
      The Spotify ID for the playlist.
    • getImages

      Image[] 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

      String getName()
      Get the name of a playlist.
      Returns:
      Playlist name.
    • getOwner

      User getOwner()
      Get the owners user object of a playlist.
      Returns:
      A user object.
    • getIsPublicAccess

      Boolean 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:
    • getItems

      T getItems()
      Get information about the items in the playlist. The concrete type depends on the specific playlist object type.
      Returns:
      Item information containing total count.
    • getSnapshotId

      String 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:
    • getType

      ModelObjectType getType()
      Get the model object type. In this case "playlist".
      Returns:
      The object type: "playlist"
    • getUri

      String getUri()
      Get the Spotify URI of a playlist.
      Returns:
      Spotify playlist URI.