Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
groupinfodto.h
Go to the documentation of this file.
1/*
2 * Sailfin: a Jellyfin client written using Qt
3 * Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19/*
20 * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
21 * OVERWRITTEN AT SOME POINT!
22 *
23 * If there is a bug in this file, please fix the code generator used to generate this file found in
24 * core/openapigenerator.d.
25 *
26 * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
27 * file with a newer file if needed instead of manually updating the files.
28 */
29
30#ifndef JELLYFIN_DTO_GROUPINFODTO_H
31#define JELLYFIN_DTO_GROUPINFODTO_H
32
33#include <QDateTime>
34#include <QJsonObject>
35#include <QJsonValue>
36#include <QList>
37#include <QString>
38#include <QStringList>
39#include <optional>
40
43
44namespace Jellyfin {
45// Forward declaration
46class ApiClient;
47}
48namespace Jellyfin {
49namespace DTO {
50
51
53public:
55 QString groupId,
57 QDateTime lastUpdatedAt
58 );
59
60 GroupInfoDto(const GroupInfoDto &other);
61
65 void replaceData(GroupInfoDto &other);
66
67 static GroupInfoDto fromJson(QJsonObject source);
68 void setFromJson(QJsonObject source);
69 QJsonObject toJson() const;
70
71 // Properties
75 QString groupId() const;
79 void setGroupId(QString newGroupId);
80
84 QString groupName() const;
88 void setGroupName(QString newGroupName);
89 bool groupNameNull() const;
90 void setGroupNameNull();
91
92
93 GroupStateType state() const;
94
95 void setState(GroupStateType newState);
96
100 QStringList participants() const;
104 void setParticipants(QStringList newParticipants);
105 bool participantsNull() const;
106 void setParticipantsNull();
107
111 QDateTime lastUpdatedAt() const;
115 void setLastUpdatedAt(QDateTime newLastUpdatedAt);
116
117
118protected:
119 QString m_groupId;
120 QString m_groupName;
122 QStringList m_participants;
124
125private:
126 // Private constructor which generates an invalid object, for use withing GroupInfoDto::fromJson();
127 GroupInfoDto();
128};
129
130
131} // NS DTO
132
133namespace Support {
134
136
137template <>
138GroupInfoDto fromJsonValue(const QJsonValue &source, convertType<GroupInfoDto>);
139
140template<>
141QJsonValue toJsonValue(const GroupInfoDto &source, convertType<GroupInfoDto>);
142
143} // NS DTO
144} // NS Jellyfin
145
146#endif // JELLYFIN_DTO_GROUPINFODTO_H
Definition groupinfodto.h:52
QDateTime lastUpdatedAt() const
Gets the date when this DTO has been created.
Definition groupinfodto.cpp:137
GroupStateType m_state
Definition groupinfodto.h:121
void setGroupNameNull()
Definition groupinfodto.cpp:114
QString groupId() const
Gets the group identifier.
Definition groupinfodto.cpp:99
QString m_groupName
Definition groupinfodto.h:120
static GroupInfoDto fromJson(QJsonObject source)
Definition groupinfodto.cpp:64
void replaceData(GroupInfoDto &other)
Definition groupinfodto.cpp:56
bool groupNameNull() const
Definition groupinfodto.cpp:110
void setParticipantsNull()
Definition groupinfodto.cpp:133
void setState(GroupStateType newState)
Definition groupinfodto.cpp:120
void setGroupId(QString newGroupId)
Gets the group identifier.
Definition groupinfodto.cpp:101
QJsonObject toJson() const
Definition groupinfodto.cpp:80
QString m_groupId
Definition groupinfodto.h:119
QStringList participants() const
Gets the participants.
Definition groupinfodto.cpp:124
GroupStateType state() const
Definition groupinfodto.cpp:118
bool participantsNull() const
Definition groupinfodto.cpp:129
QDateTime m_lastUpdatedAt
Definition groupinfodto.h:123
void setLastUpdatedAt(QDateTime newLastUpdatedAt)
Gets the date when this DTO has been created.
Definition groupinfodto.cpp:139
void setFromJson(QJsonObject source)
Definition groupinfodto.cpp:71
void setGroupName(QString newGroupName)
Gets the group name.
Definition groupinfodto.cpp:107
QStringList m_participants
Definition groupinfodto.h:122
QString groupName() const
Gets the group name.
Definition groupinfodto.cpp:105
void setParticipants(QStringList newParticipants)
Gets the participants.
Definition groupinfodto.cpp:126
Value
Definition groupstatetype.h:49
AccessSchedule fromJsonValue(const QJsonValue &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:133
QJsonValue toJsonValue(const AccessSchedule &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:139
Definition jsonconvimpl.h:45