To work with Deezer playlist objects.

the Deezer Playlist API Documentation for more details about each field.

Hierarchy (View Summary)

Constructors

Properties

title: string
description: string
duration: number
public: boolean
is_loved_track: boolean
collaborative: boolean
nb_tracks: number
unseen_track_count: number
fans: number
link: string
share: string
picture: string
picture_small: string
picture_medium: string
picture_big: string
picture_xl: string
checksum: string
creator: User
tracks?: Track[]
client: Client
_fields: string[]
_fetched: boolean = false
id: number
type: string

Methods

  • Type Parameters

    • T

    Parameters

    • relation: string
    • OptionalresourceType: new (client: Client, json: Record<string, any>) => Resource
    • Optionalparams: Record<string, string>
    • fwdParent: boolean = true

    Returns Promise<T>

  • Ensures a field is loaded, fetching the full resource if necessary.

    Type Parameters

    • T

    Parameters

    • fieldName: string

      The name of the field to ensure

    Returns Promise<T>

    The value of the field

    Error if the field cannot be loaded