Constructor
new GuestSession(id, guestSessionSection)
Initializes this object.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The guest session id. |
guestSessionSection |
exports.GuestSessionSection
|
The parent guest session section. |
Methods
(async) getRatedMoviesAsync(sortBy) → {Promise.<*>}
Gets the rated movies of this guest session.
Parameters:
Name | Type | Description |
---|---|---|
sortBy |
string
|
The sorting type (see tmdb_utils.sortingTypes, although only CREATED_AT.ASC and CREATED_AT_DESC are valid). |
Returns:
- Type:
-
Promise.<*>
A Promise of rated movie data.
(async) getRatedTvShowEpisodesAsync(sortBy) → {Promise.<*>}
Gets the rated TV show episodes of this guest session.
Parameters:
Name | Type | Description |
---|---|---|
sortBy |
string
|
The sorting type (see tmdb_utils.sortingTypes, although only CREATED_AT.ASC and CREATED_AT_DESC are valid). |
Returns:
- Type:
-
Promise.<*>
A Promise of rated TV show episode data.
(async) getRatedTvShowsAsync(sortBy) → {Promise.<*>}
Gets the rated TV shows of this guest session.
Parameters:
Name | Type | Description |
---|---|---|
sortBy |
string
|
The sorting type (see tmdb_utils.sortingTypes, although only CREATED_AT.ASC and CREATED_AT_DESC are valid). |
Returns:
- Type:
-
Promise.<*>
A Promise of rated TV show data.