mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 04:54:29 -04:00
Add new controller for requesting the "full" information for a comic.
For now it doesn't serve the full information, only the information shown in the current/next comic view in iOS. I will see if I create two separated controllers or just on sending all the information when more information is needed in another iOS view.
This commit is contained in:
@ -57,4 +57,18 @@ QJsonObject YACReaderServerDataHelper::comicToJSON(const qulonglong libraryId, c
|
||||
return json;
|
||||
}
|
||||
|
||||
QJsonObject YACReaderServerDataHelper::fullComicToJSON(const qulonglong libraryId, const ComicDB & comic)
|
||||
{
|
||||
QJsonObject json = comicToJSON(libraryId, comic);
|
||||
|
||||
json["volume"] = comic.info.volume.toString();
|
||||
json["total_volume_count"] = comic.info.count.toInt();
|
||||
json["genre"] = comic.info.genere.toString();
|
||||
json["date"] = comic.info.date.toString();
|
||||
|
||||
json["synopsis"] = comic.info.synopsis.toString();
|
||||
|
||||
return json;
|
||||
}
|
||||
|
||||
YACReaderServerDataHelper::YACReaderServerDataHelper() {}
|
||||
|
Reference in New Issue
Block a user