Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
objectgroupupdate.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_OBJECTGROUPUPDATE_H
31#define JELLYFIN_DTO_OBJECTGROUPUPDATE_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QString>
36#include <QVariant>
37#include <optional>
38
41
42namespace Jellyfin {
43// Forward declaration
44class ApiClient;
45}
46namespace Jellyfin {
47namespace DTO {
48
49
51public:
53 QString groupId,
55 QVariant data
56 );
57
59
63 void replaceData(ObjectGroupUpdate &other);
64
65 static ObjectGroupUpdate fromJson(QJsonObject source);
66 void setFromJson(QJsonObject source);
67 QJsonObject toJson() const;
68
69 // Properties
73 QString groupId() const;
77 void setGroupId(QString newGroupId);
78
79
80 GroupUpdateType type() const;
81
82 void setType(GroupUpdateType newType);
83
87 QVariant data() const;
91 void setData(QVariant newData);
92
93
94protected:
95 QString m_groupId;
97 QVariant m_data;
98
99private:
100 // Private constructor which generates an invalid object, for use withing ObjectGroupUpdate::fromJson();
102};
103
104
105} // NS DTO
106
107namespace Support {
108
110
111template <>
113
114template<>
116
117} // NS DTO
118} // NS Jellyfin
119
120#endif // JELLYFIN_DTO_OBJECTGROUPUPDATE_H
Value
Definition groupupdatetype.h:49
Definition objectgroupupdate.h:50
void setFromJson(QJsonObject source)
Definition objectgroupupdate.cpp:67
void setGroupId(QString newGroupId)
Gets the group identifier.
Definition objectgroupupdate.cpp:85
void replaceData(ObjectGroupUpdate &other)
Definition objectgroupupdate.cpp:54
GroupUpdateType type() const
Definition objectgroupupdate.cpp:89
static ObjectGroupUpdate fromJson(QJsonObject source)
Definition objectgroupupdate.cpp:60
QString groupId() const
Gets the group identifier.
Definition objectgroupupdate.cpp:83
QVariant m_data
Definition objectgroupupdate.h:97
QVariant data() const
Gets the update data.
Definition objectgroupupdate.cpp:95
void setType(GroupUpdateType newType)
Definition objectgroupupdate.cpp:91
QJsonObject toJson() const
Definition objectgroupupdate.cpp:74
GroupUpdateType m_type
Definition objectgroupupdate.h:96
void setData(QVariant newData)
Gets the update data.
Definition objectgroupupdate.cpp:97
QString m_groupId
Definition objectgroupupdate.h:95
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