Class AlbumSimplified
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject
-
- com.wrapper.spotify.model_objects.specification.AlbumSimplified
-
- All Implemented Interfaces:
IModelObject,ISearchModelObject
public class AlbumSimplified extends AbstractModelObject implements ISearchModelObject
Retrieve information about simplified Album objects by building instances from this class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAlbumSimplified.BuilderBuilder class for buildingAlbumSimplifiedinstances.static classAlbumSimplified.JsonUtilJsonUtil class for buildingAlbumSimplifiedinstances.-
Nested classes/interfaces inherited from interface com.wrapper.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlbumSimplified.Builderbuilder()Create a builder for building an instance of a model object.AlbumTypegetAlbumType()Get the type of the album.ArtistSimplified[]getArtists()Get the artists of the album.com.neovisionaries.i18n.CountryCode[]getAvailableMarkets()Get the country codes of all countries, in which the album is available.ExternalUrlgetExternalUrls()Get the external URLs of the album.StringgetHref()Get the full Spotify Web API endpoint URL of the album.StringgetId()Get the Spotify ID of the album.Image[]getImages()Get the album cover art of the album in different sizes.StringgetName()Get the name of the album.ModelObjectTypegetType()Get the model object type.StringgetUri()Get the Spotify URI of the album.
-
-
-
Method Detail
-
getArtists
public ArtistSimplified[] getArtists()
Get the artists of the album.- Returns:
- An array of
ArtistSimplifiedobjects.
-
getAvailableMarkets
public com.neovisionaries.i18n.CountryCode[] getAvailableMarkets()
Get the country codes of all countries, in which the album is available.- Returns:
- An array of ISO 3166-1 alpha-2 country codes.
-
getExternalUrls
public ExternalUrl getExternalUrls()
Get the external URLs of the album.
Example: Spotify-URL- Returns:
- An
ExternalUrlobject.
-
getHref
public String getHref()
Get the full Spotify Web API endpoint URL of the album.- Returns:
- A Spotify Web API endpoint URL.
-
getId
public String getId()
Get the Spotify ID of the album.- Returns:
- A Spotify album ID.
-
getImages
public Image[] getImages()
Get the album cover art of the album in different sizes.- Returns:
- An array of
Imageobjects.
-
getName
public String getName()
Get the name of the album.- Returns:
- Album name.
-
getType
public ModelObjectType getType()
Get the model object type. In this case "album".- Returns:
- A
ModelObjectType.
-
getUri
public String getUri()
Get the Spotify URI of the album.- Returns:
- Spotify album URI.
-
builder
public AlbumSimplified.Builder builder()
Description copied from interface:IModelObjectCreate 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:
builderin interfaceIModelObject- Returns:
- A builder object.
-
-