mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 18:22:46 +00:00
Adjust codegeneration to emit simpler classes
This commit is contained in:
parent
05f79197eb
commit
0358418926
466 changed files with 21405 additions and 13956 deletions
|
@ -32,26 +32,30 @@
|
|||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
JoinGroupRequestDto::JoinGroupRequestDto(QObject *parent) : QObject(parent) {}
|
||||
JoinGroupRequestDto::JoinGroupRequestDto(QObject *parent) {}
|
||||
|
||||
JoinGroupRequestDto *JoinGroupRequestDto::fromJSON(QJsonObject source, QObject *parent) {
|
||||
JoinGroupRequestDto *instance = new JoinGroupRequestDto(parent);
|
||||
instance->updateFromJSON(source);
|
||||
JoinGroupRequestDto JoinGroupRequestDto::fromJson(QJsonObject source) {JoinGroupRequestDto instance;
|
||||
instance->setFromJson(source, false);
|
||||
return instance;
|
||||
}
|
||||
|
||||
void JoinGroupRequestDto::updateFromJSON(QJsonObject source) {
|
||||
Q_UNIMPLEMENTED();
|
||||
|
||||
void JoinGroupRequestDto::setFromJson(QJsonObject source) {
|
||||
m_groupId = fromJsonValue<QUuid>(source["GroupId"]);
|
||||
|
||||
}
|
||||
QJsonObject JoinGroupRequestDto::toJSON() {
|
||||
Q_UNIMPLEMENTED();
|
||||
|
||||
QJsonObject JoinGroupRequestDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["GroupId"] = toJsonValue<QUuid>(m_groupId);
|
||||
|
||||
return result;
|
||||
}
|
||||
QString JoinGroupRequestDto::groupId() const { return m_groupId; }
|
||||
void JoinGroupRequestDto::setGroupId(QString newGroupId) {
|
||||
|
||||
QUuid JoinGroupRequestDto::groupId() const { return m_groupId; }
|
||||
|
||||
void JoinGroupRequestDto::setGroupId(QUuid newGroupId) {
|
||||
m_groupId = newGroupId;
|
||||
emit groupIdChanged(newGroupId);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue