mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
improve html api;
fix thumbnails loading api; add favoriteId api
This commit is contained in:
@@ -58,6 +58,8 @@ class Comic {
|
||||
|
||||
final String? language;
|
||||
|
||||
final String? favoriteId;
|
||||
|
||||
const Comic(
|
||||
this.title,
|
||||
this.cover,
|
||||
@@ -68,7 +70,7 @@ class Comic {
|
||||
this.sourceKey,
|
||||
this.maxPage,
|
||||
this.language,
|
||||
);
|
||||
): favoriteId = null;
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
@@ -81,6 +83,7 @@ class Comic {
|
||||
"sourceKey": sourceKey,
|
||||
"maxPage": maxPage,
|
||||
"language": language,
|
||||
"favoriteId": favoriteId,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -92,7 +95,8 @@ class Comic {
|
||||
tags = List<String>.from(json["tags"] ?? []),
|
||||
description = json["description"] ?? "",
|
||||
maxPage = json["maxPage"],
|
||||
language = json["language"];
|
||||
language = json["language"],
|
||||
favoriteId = json["favoriteId"];
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
|
Reference in New Issue
Block a user