Options
All
  • Public
  • Public/Protected
  • All
Menu

Base class for all album-like structures

Hierarchy

Index

Constructors

constructor

  • new BaseAlbum(client: Client, data: SimplifiedAlbumObject | AlbumObject): BaseAlbum

Properties

artists

artists: Collection<string, SimplifiedArtist>

The artists of the album

availableMarkets

availableMarkets: string[]

The markets in which the album is available

client

client: Client

The client that instantiated this class

externalUrls

externalUrls: ExternalUrl

Known external URLs for the album

href

href: string

A link to the Web API endpoint providing full details of the album

id

id: string

The Spotify ID of the structure

images

images: Image[]

The cover art for the album in various sizes, widest first

name

name: string

The name of the album

rawObjectType

rawObjectType: string

The raw object type returned by the api: album

releaseDate

releaseDate: string

The date the album was first released, for example 1981-12-15. Depending on the precision, it might be shown as 1981 or 1981-12

releaseDatePrecision

releaseDatePrecision: string

The precision with which releaseDate value is known: year, month, or day

restrictions

restrictions: null | AlbumRestriction

Included in the response when a content restriction is applied

type

type: string

The type of the album

uri

uri: string

The Spotify URI for the album

Methods

Private _patchArtists

Private _patchImages

  • _patchImages(data: ImageObject[]): Image[]

fetchTracks

Legend

  • Constructor
  • Property
  • Method
  • Constructor
  • Property
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private property
  • Private method

Generated using TypeDoc