Collection

tmdb-js/sections/types. Collection

A class that represents the collection section in TMDb.

Constructor

new Collection(id, collectionSection)

Initializes this object.
Source:
Parameters:
Name Type Description
id string The id of the collection.
collectionSection exports.CollectionSection The parent CollectionSection.

Methods

(async) getDetailsAsync() → {Promise.<*>}

Gets the collection details based on the passed id.
Source:
Returns:
Type:
Promise.<*>
A Promise of collection details.

(async) getImagesAsync() → {Promise.<*>}

Gets the images of the collection in question.
Source:
Returns:
Type:
Promise.<*>
A Promise of collection images.

(async) getTranslationsAsync() → {Promise.<*>}

Gets the translations of the collection in question.
Source:
Returns:
Type:
Promise.<*>
A Promise of collection translations.