getMangaFeed method

Future<MangaFeed> getMangaFeed(
  1. String mangaId, {
  2. int? limit,
  3. int? offset,
  4. List<LanguageCodes>? translatedLanguage,
  5. List<LanguageCodes>? originalLanguage,
  6. List<LanguageCodes>? excludedOriginalLanguage,
  7. List<ContentRating>? contentRating,
  8. List<String>? excludedGroups,
  9. List<String>? excludedUploaders,
  10. bool? includeFutureUpdates,
  11. String? createdAtSince,
  12. String? updatedAtSince,
  13. String? publishAtSince,
  14. Map<ChapterOrders, OrderDirections>? order,
  15. List<String>? includes,
  16. bool? includeEmptyPages,
  17. bool? includeFuturePublishAt,
  18. bool? includeExternalUrl,
})
inherited

Endpoint used: GET /manga/{id}/feed

Gets the manga feed for the the given mangaId of a manga and returns a MangaFeed class instance of the data.

Implementation

Future<MangaFeed> getMangaFeed(
  String mangaId, {
  int? limit,
  int? offset,
  List<LanguageCodes>? translatedLanguage,
  List<LanguageCodes>? originalLanguage,
  List<LanguageCodes>? excludedOriginalLanguage,
  List<ContentRating>? contentRating,
  List<String>? excludedGroups,
  List<String>? excludedUploaders,
  bool? includeFutureUpdates,
  String? createdAtSince,
  String? updatedAtSince,
  String? publishAtSince,
  Map<ChapterOrders, OrderDirections>? order,
  List<String>? includes,
  bool? includeEmptyPages,
  bool? includeFuturePublishAt,
  bool? includeExternalUrl,
}) async {
  var response = await getMangaFeedResponse(mangaId,
      limit: limit,
      offset: offset,
      translatedLanguage: translatedLanguage,
      originalLanguage: originalLanguage,
      excludedOriginalLanguage: excludedOriginalLanguage,
      contentRating: contentRating,
      excludedGroups: excludedGroups,
      excludedUploaders: excludedUploaders,
      includeFutureUpdates: includeFutureUpdates,
      createdAtSince: createdAtSince,
      updatedAtSince: updatedAtSince,
      publishAtSince: publishAtSince,
      order: order,
      includes: includes,
      includeEmptyPages: includeEmptyPages,
      includeFuturePublishAt: includeFuturePublishAt,
      includeExternalUrl: includeExternalUrl);
  return MangaFeed.fromJson(jsonDecode(response.body));
}