Interface IAlbum

All Known Implementing Classes:
Album, AlbumSimplified, AlbumSimplifiedSpecial

public interface IAlbum
Represents the common properties of Spotify Album objects (full and simplified).

This interface provides a common base for Album, AlbumSimplified, and AlbumSimplifiedSpecial objects.

  • Method Details

    • getAlbumType

      AlbumType getAlbumType()
      Get the type of the album.
      Returns:
      The AlbumType.
    • getArtists

      ArtistSimplified[] getArtists()
      Get the artists of the album.
      Returns:
      An array of ArtistSimplified objects.
    • getExternalUrls

      ExternalUrl getExternalUrls()
      Get the external URLs of the album.
      Example: Spotify-URL
      Returns:
      An ExternalUrl object.
    • getHref

      String getHref()
      Get the full Spotify Web API endpoint URL of the album.
      Returns:
      A Spotify Web API endpoint URL.
    • getId

      String getId()
      Get the Spotify ID of the album.
      Returns:
      A Spotify album ID.
    • getImages

      Image[] getImages()
      Get the album cover art of the album in different sizes.
      Returns:
      An array of Image objects.
    • getName

      String getName()
      Get the name of the album.
      Returns:
      Album name.
    • getReleaseDate

      String getReleaseDate()
      Get the release date of the album with the highest precision available.
      Returns:
      The release date of the album.
    • getReleaseDatePrecision

      ReleaseDatePrecision getReleaseDatePrecision()
      Get the precision of the albums release date. This is needed when the exact release day of an album is not known.
      Returns:
      The precision of the albums release date.
    • getType

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

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