1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-06 10:32:44 +00:00

Adjust codegeneration to emit simpler classes

This commit is contained in:
Chris Josten 2021-03-20 03:30:50 +01:00
parent 05f79197eb
commit 0358418926
466 changed files with 21405 additions and 13956 deletions

View file

@ -32,26 +32,30 @@
namespace Jellyfin {
namespace DTO {
CollectionCreationResult::CollectionCreationResult(QObject *parent) : QObject(parent) {}
CollectionCreationResult::CollectionCreationResult(QObject *parent) {}
CollectionCreationResult *CollectionCreationResult::fromJSON(QJsonObject source, QObject *parent) {
CollectionCreationResult *instance = new CollectionCreationResult(parent);
instance->updateFromJSON(source);
CollectionCreationResult CollectionCreationResult::fromJson(QJsonObject source) {CollectionCreationResult instance;
instance->setFromJson(source, false);
return instance;
}
void CollectionCreationResult::updateFromJSON(QJsonObject source) {
Q_UNIMPLEMENTED();
void CollectionCreationResult::setFromJson(QJsonObject source) {
m_jellyfinId = fromJsonValue<QUuid>(source["Id"]);
}
QJsonObject CollectionCreationResult::toJSON() {
Q_UNIMPLEMENTED();
QJsonObject CollectionCreationResult::toJson() {
QJsonObject result;
result["Id"] = toJsonValue<QUuid>(m_jellyfinId);
return result;
}
QString CollectionCreationResult::jellyfinId() const { return m_jellyfinId; }
void CollectionCreationResult::setJellyfinId(QString newJellyfinId) {
QUuid CollectionCreationResult::jellyfinId() const { return m_jellyfinId; }
void CollectionCreationResult::setJellyfinId(QUuid newJellyfinId) {
m_jellyfinId = newJellyfinId;
emit jellyfinIdChanged(newJellyfinId);
}