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 Summary
Modifier and TypeMethodDescriptionGet the type of the album.Get the artists of the album.Get the external URLs of the album.getHref()Get the full Spotify Web API endpoint URL of the album.getId()Get the Spotify ID of the album.Image[]Get the album cover art of the album in different sizes.getName()Get the name of the album.Get the release date of the album with the highest precision available.Get the precision of the albums release date.getType()Get the model object type.getUri()Get the Spotify URI of the album.
-
Method Details
-
getAlbumType
-
getArtists
ArtistSimplified[] getArtists()Get the artists of the album.- Returns:
- An array of
ArtistSimplifiedobjects.
-
getExternalUrls
ExternalUrl getExternalUrls()Get the external URLs of the album.
Example: Spotify-URL- Returns:
- An
ExternalUrlobject.
-
getHref
String getHref()Get the full Spotify Web API endpoint URL of the album.- Returns:
- A Spotify Web API endpoint URL.
-
getId
-
getImages
-
getName
-
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
-