mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Include "last_time_opened" in JSON serialization
This commit is contained in:
parent
c84fc20419
commit
fe15bc2ba8
@ -53,6 +53,7 @@ QJsonObject YACReaderServerDataHelper::comicToJSON(const qulonglong libraryId, c
|
|||||||
json["cover_size_ratio"] = comic.info.coverSizeRatio.toFloat();
|
json["cover_size_ratio"] = comic.info.coverSizeRatio.toFloat();
|
||||||
json["title"] = comic.info.title.toString();
|
json["title"] = comic.info.title.toString();
|
||||||
json["number"] = comic.info.number.toInt();
|
json["number"] = comic.info.number.toInt();
|
||||||
|
json["last_time_opened"] = comic.info.lastTimeOpened.toLongLong();
|
||||||
|
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -103,4 +104,4 @@ QJsonObject YACReaderServerDataHelper::labelToJSON(const qulonglong libraryId, c
|
|||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
YACReaderServerDataHelper::YACReaderServerDataHelper() { }
|
YACReaderServerDataHelper::YACReaderServerDataHelper() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user