Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
boxsetinfo.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_BOXSETINFO_H
31#define JELLYFIN_DTO_BOXSETINFO_H
32
33#include <QDateTime>
34#include <QJsonObject>
35#include <QJsonValue>
36#include <QString>
37#include <optional>
38
40
41namespace Jellyfin {
42// Forward declaration
43class ApiClient;
44}
45namespace Jellyfin {
46namespace DTO {
47
48
50public:
52 bool isAutomated
53 );
54
55 BoxSetInfo(const BoxSetInfo &other);
56
60 void replaceData(BoxSetInfo &other);
61
62 static BoxSetInfo fromJson(QJsonObject source);
63 void setFromJson(QJsonObject source);
64 QJsonObject toJson() const;
65
66 // Properties
70 QString name() const;
74 void setName(QString newName);
75 bool nameNull() const;
76 void setNameNull();
77
81 QString originalTitle() const;
85 void setOriginalTitle(QString newOriginalTitle);
86 bool originalTitleNull() const;
88
92 QString path() const;
96 void setPath(QString newPath);
97 bool pathNull() const;
98 void setPathNull();
99
103 QString metadataLanguage() const;
107 void setMetadataLanguage(QString newMetadataLanguage);
108 bool metadataLanguageNull() const;
110
114 QString metadataCountryCode() const;
118 void setMetadataCountryCode(QString newMetadataCountryCode);
119 bool metadataCountryCodeNull() const;
121
125 QJsonObject providerIds() const;
129 void setProviderIds(QJsonObject newProviderIds);
130 bool providerIdsNull() const;
131 void setProviderIdsNull();
132
136 std::optional<qint32> year() const;
140 void setYear(std::optional<qint32> newYear);
141 bool yearNull() const;
142 void setYearNull();
143
144
145 std::optional<qint32> indexNumber() const;
146
147 void setIndexNumber(std::optional<qint32> newIndexNumber);
148 bool indexNumberNull() const;
149 void setIndexNumberNull();
150
151
152 std::optional<qint32> parentIndexNumber() const;
153
154 void setParentIndexNumber(std::optional<qint32> newParentIndexNumber);
155 bool parentIndexNumberNull() const;
157
158
159 QDateTime premiereDate() const;
160
161 void setPremiereDate(QDateTime newPremiereDate);
162 bool premiereDateNull() const;
163 void setPremiereDateNull();
164
165
166 bool isAutomated() const;
167
168 void setIsAutomated(bool newIsAutomated);
169
170
171protected:
172 QString m_name;
174 QString m_path;
177 QJsonObject m_providerIds;
178 std::optional<qint32> m_year = std::nullopt;
179 std::optional<qint32> m_indexNumber = std::nullopt;
180 std::optional<qint32> m_parentIndexNumber = std::nullopt;
181 QDateTime m_premiereDate;
183
184private:
185 // Private constructor which generates an invalid object, for use withing BoxSetInfo::fromJson();
186 BoxSetInfo();
187};
188
189
190} // NS DTO
191
192namespace Support {
193
195
196template <>
197BoxSetInfo fromJsonValue(const QJsonValue &source, convertType<BoxSetInfo>);
198
199template<>
200QJsonValue toJsonValue(const BoxSetInfo &source, convertType<BoxSetInfo>);
201
202} // NS DTO
203} // NS Jellyfin
204
205#endif // JELLYFIN_DTO_BOXSETINFO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition boxsetinfo.h:49
bool metadataCountryCodeNull() const
Definition boxsetinfo.cpp:208
void setIndexNumberNull()
Definition boxsetinfo.cpp:251
void setParentIndexNumber(std::optional< qint32 > newParentIndexNumber)
Definition boxsetinfo.cpp:257
void setMetadataLanguage(QString newMetadataLanguage)
Gets or sets the metadata language.
Definition boxsetinfo.cpp:192
QString originalTitle() const
Gets or sets the original title.
Definition boxsetinfo.cpp:164
QString m_metadataLanguage
Definition boxsetinfo.h:175
bool providerIdsNull() const
Definition boxsetinfo.cpp:221
void setPathNull()
Definition boxsetinfo.cpp:186
bool pathNull() const
Definition boxsetinfo.cpp:182
QDateTime premiereDate() const
Definition boxsetinfo.cpp:268
static BoxSetInfo fromJson(QJsonObject source)
Definition boxsetinfo.cpp:72
bool parentIndexNumberNull() const
Definition boxsetinfo.cpp:260
std::optional< qint32 > indexNumber() const
Definition boxsetinfo.cpp:242
bool nameNull() const
Definition boxsetinfo.cpp:156
BoxSetInfo(bool isAutomated)
Definition boxsetinfo.cpp:36
void setFromJson(QJsonObject source)
Definition boxsetinfo.cpp:79
bool m_isAutomated
Definition boxsetinfo.h:182
std::optional< qint32 > m_parentIndexNumber
Definition boxsetinfo.h:180
bool premiereDateNull() const
Definition boxsetinfo.cpp:273
QString metadataCountryCode() const
Gets or sets the metadata country code.
Definition boxsetinfo.cpp:203
void setPath(QString newPath)
Gets or sets the path.
Definition boxsetinfo.cpp:179
void setPremiereDate(QDateTime newPremiereDate)
Definition boxsetinfo.cpp:270
bool indexNumberNull() const
Definition boxsetinfo.cpp:247
QJsonObject m_providerIds
Definition boxsetinfo.h:177
QJsonObject toJson() const
Definition boxsetinfo.cpp:94
std::optional< qint32 > m_indexNumber
Definition boxsetinfo.h:179
void setNameNull()
Definition boxsetinfo.cpp:160
void setParentIndexNumberNull()
Definition boxsetinfo.cpp:264
bool metadataLanguageNull() const
Definition boxsetinfo.cpp:195
void setYear(std::optional< qint32 > newYear)
Gets or sets the year.
Definition boxsetinfo.cpp:231
bool yearNull() const
Definition boxsetinfo.cpp:234
std::optional< qint32 > m_year
Definition boxsetinfo.h:178
void setYearNull()
Definition boxsetinfo.cpp:238
QString m_originalTitle
Definition boxsetinfo.h:173
void setMetadataCountryCodeNull()
Definition boxsetinfo.cpp:212
QJsonObject providerIds() const
Gets or sets the provider ids.
Definition boxsetinfo.cpp:216
std::optional< qint32 > year() const
Gets or sets the year.
Definition boxsetinfo.cpp:229
void setIsAutomated(bool newIsAutomated)
Definition boxsetinfo.cpp:283
std::optional< qint32 > parentIndexNumber() const
Definition boxsetinfo.cpp:255
void setMetadataLanguageNull()
Definition boxsetinfo.cpp:199
QString path() const
Gets or sets the path.
Definition boxsetinfo.cpp:177
void setOriginalTitleNull()
Definition boxsetinfo.cpp:173
QString m_path
Definition boxsetinfo.h:174
void setProviderIdsNull()
Definition boxsetinfo.cpp:225
void replaceData(BoxSetInfo &other)
Definition boxsetinfo.cpp:58
void setPremiereDateNull()
Definition boxsetinfo.cpp:277
bool isAutomated() const
Definition boxsetinfo.cpp:281
QString m_metadataCountryCode
Definition boxsetinfo.h:176
QString metadataLanguage() const
Gets or sets the metadata language.
Definition boxsetinfo.cpp:190
void setOriginalTitle(QString newOriginalTitle)
Gets or sets the original title.
Definition boxsetinfo.cpp:166
void setIndexNumber(std::optional< qint32 > newIndexNumber)
Definition boxsetinfo.cpp:244
QDateTime m_premiereDate
Definition boxsetinfo.h:181
void setName(QString newName)
Gets or sets the name.
Definition boxsetinfo.cpp:153
void setMetadataCountryCode(QString newMetadataCountryCode)
Gets or sets the metadata country code.
Definition boxsetinfo.cpp:205
QString m_name
Definition boxsetinfo.h:172
bool originalTitleNull() const
Definition boxsetinfo.cpp:169
QString name() const
Gets or sets the name.
Definition boxsetinfo.cpp:151
void setProviderIds(QJsonObject newProviderIds)
Gets or sets the provider ids.
Definition boxsetinfo.cpp:218
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
AccessSchedule fromJsonValue(const QJsonValue &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:133
Jellyfin::DTO::BoxSetInfo BoxSetInfo
Definition boxsetinfo.h:194
QJsonValue toJsonValue(const AccessSchedule &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:139
Definition jsonconvimpl.h:45