@dvxch/yandex-music
    Preparing search index...

    Class Like

    A liked entity (artist, album or playlist) together with when it was liked.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    album?: Album

    Liked album, when type is album.

    artist?: Artist

    Liked artist, when type is artist.

    client?: Client

    The client that created this model, used by convenience methods.

    description?: string

    Description.

    id?: string

    Entity id.

    isBanner?: boolean

    Whether shown as a banner.

    isPremiere?: boolean

    Whether a premiere.

    playlist?: Playlist

    Liked playlist, when type is playlist.

    shortDescription?: string

    Short description.

    timestamp?: string

    When the like was added.

    type?: string

    Liked entity type.

    Methods

    • Assert that this model carries a client, returning it narrowed to non-null.

      Convenience methods that need to call the API use this to fail fast with a clear message instead of a generic "cannot read property of undefined".

      Returns Client

      The owning Client.

      When the model was created without a client.