getEpisodeComments method
Future<List<Comment> >
getEpisodeComments(
- String id,
- int seasonNumber,
- int episodeNumber, {
- CommentsSortBy sortBy = CommentsSortBy.newest,
- RequestPagination? pagination,
Returns all top level comments for an episode.
By default, the newest comments are returned first. Other sorting options include oldest, most likes, most replies, highest rated, lowest rated, and most plays.
id
- Trakt ID, Trakt slug, or IMDB ID
seasonNumber
- season number
episodeNumber
- episode number
sortBy
- how to sort
📄 Pagination 😁 Emojis
Implementation
Future<List<Comment>> getEpisodeComments(
String id, int seasonNumber, int episodeNumber,
{CommentsSortBy sortBy = CommentsSortBy.newest,
RequestPagination? pagination}) async {
return await _manager._getList<Comment>(
"shows/$id/seasons/$seasonNumber/episodes/$episodeNumber/comments/${sortBy.value}",
pagination: pagination);
}