Constructor
new Keyword(id, keywordSection)
Initializes this object.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The id of the keyword. |
keywordSection |
exports.KeywordSection
|
The parent KeywordSection. |
Methods
(async) getDetailsAsync() → {Promise.<*>}
Gets the keyword details based on the passed id.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of keyword details.
(async) getMovies(includeAdult) → {Promise.<*>}
Gets the movies that belong to this keyword.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
includeAdult |
true | A value indicating whether or not to include adult content. |
Returns:
- Type:
-
Promise.<*>
A Promise of movie data in JSON format.