Add more info to json content + better handling of optionality

This commit is contained in:
Luis Ángel San Martín
2024-01-07 10:52:27 +01:00
parent b4951fcb1a
commit 5728d4bb18
10 changed files with 148 additions and 73 deletions

View File

@ -12,11 +12,11 @@ public:
static QString folderToYSFormat(const qulonglong libraryId, const Folder &folder);
static QString comicToYSFormat(const qulonglong libraryId, const ComicDB &comic);
static QJsonObject folderToJSON(const qulonglong libraryId, const Folder &folder);
static QJsonObject comicToJSON(const qulonglong libraryId, const ComicDB &comic);
static QJsonObject fullComicToJSON(const qulonglong libraryId, const ComicDB &comic);
static QJsonObject readingListToJSON(const qulonglong libraryId, const ReadingList &readingList);
static QJsonObject labelToJSON(const qulonglong libraryId, const Label &label);
static QJsonObject folderToJSON(const qulonglong libraryId, const QUuid libraryUuid, const Folder &folder);
static QJsonObject comicToJSON(const qulonglong libraryId, const QUuid libraryUuid, const ComicDB &comic);
static QJsonObject fullComicToJSON(const qulonglong libraryId, const QUuid libraryUuid, const ComicDB &comic);
static QJsonObject readingListToJSON(const qulonglong libraryId, const QUuid libraryUuid, const ReadingList &readingList);
static QJsonObject labelToJSON(const qulonglong libraryId, const QUuid libraryUuid, const Label &label);
private:
YACReaderServerDataHelper();