Constructor
new Collection(id, collectionSection)
Initializes this object.
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.
Returns:
- Type:
-
Promise.<*>
A Promise of collection details.
(async) getImagesAsync() → {Promise.<*>}
Gets the images of the collection in question.
Returns:
- Type:
-
Promise.<*>
A Promise of collection images.
(async) getTranslationsAsync() → {Promise.<*>}
Gets the translations of the collection in question.
Returns:
- Type:
-
Promise.<*>
A Promise of collection translations.