getMangaFeed method
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,
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));
}