download & view local comics

This commit is contained in:
nyne
2024-10-14 11:10:24 +08:00
parent 5a3537657a
commit c0a0dc59e1
20 changed files with 1467 additions and 158 deletions

View File

@@ -139,6 +139,29 @@ class ComicDetails with HistoryMixin {
uploadTime = json["uploadTime"],
updateTime = json["updateTime"];
Map<String, dynamic> toJson() {
return {
"title": title,
"subTitle": subTitle,
"cover": cover,
"description": description,
"tags": tags,
"chapters": chapters,
"thumbnails": thumbnails,
"recommend": null,
"sourceKey": sourceKey,
"comicId": comicId,
"isFavorite": isFavorite,
"subId": subId,
"isLiked": isLiked,
"likesCount": likesCount,
"commentsCount": commentsCount,
"uploader": uploader,
"uploadTime": uploadTime,
"updateTime": updateTime,
};
}
@override
HistoryType get historyType => HistoryType(sourceKey.hashCode);
@@ -146,4 +169,4 @@ class ComicDetails with HistoryMixin {
String get id => comicId;
ComicType get comicType => ComicType(sourceKey.hashCode);
}
}