Options
All
  • Public
  • Public/Protected
  • All
Menu

Stores cache for albums and holds their API methods

Hierarchy

Index

Constructors

constructor

Properties

Protected _holds

The type of structure held by this manager

cache

cache: Collection<string, Album>

The cache of the structures held by this manager

client

client: Client

Client that instantiated this class

Methods

Private _fetchMany

Private _fetchSingle

Protected _search

add

  • add(id: string, cacheAfterFetching?: boolean, data: unknown): Album
  • Converts raw data sent by the API to a structure and adds it to the cache

    Parameters

    • id: string

      The ID of the structure

    • cacheAfterFetching: boolean = true

      Whether to cache the structure or not

    • data: unknown

      The raw data returned by the API for this structure

    Returns Album

fetch

fetchNewReleases

fetchTracks

resolve

resolveID

search

Legend

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

Generated using TypeDoc