getEpisodeComments method

Future<List<Comment>> getEpisodeComments(
  1. String id,
  2. int seasonNumber,
  3. int episodeNumber, {
  4. CommentsSortBy sortBy = CommentsSortBy.newest,
  5. 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);
}