Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected _holds

The type of structure held by this manager

cache

cache: Collection<string, Track>

The cache of the structures held by this manager

client

client: Client

Client that instantiated this class

Methods

Private _fetchMany

Private _fetchManyAudioFeatures

Private _fetchSingle

Private _fetchSingleAudioFeatures

Protected _search

add

  • add(id: string, cacheAfterFetching?: boolean, data: unknown): Track
  • 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 Track

fetch

fetchAudioFeatures

fetchRecommendations

resolve

resolveID

search

Legend

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

Generated using TypeDoc