Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
forgotpasswordresult.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_FORGOTPASSWORDRESULT_H
31#define JELLYFIN_DTO_FORGOTPASSWORDRESULT_H
32
33#include <QDateTime>
34#include <QJsonObject>
35#include <QJsonValue>
36#include <QString>
37#include <optional>
38
41
42namespace Jellyfin {
43// Forward declaration
44class ApiClient;
45}
46namespace Jellyfin {
47namespace DTO {
48
49
51public:
54 );
55
57
62
63 static ForgotPasswordResult fromJson(QJsonObject source);
64 void setFromJson(QJsonObject source);
65 QJsonObject toJson() const;
66
67 // Properties
68
70
71 void setAction(ForgotPasswordAction newAction);
72
76 QString pinFile() const;
80 void setPinFile(QString newPinFile);
81 bool pinFileNull() const;
82 void setPinFileNull();
83
87 QDateTime pinExpirationDate() const;
91 void setPinExpirationDate(QDateTime newPinExpirationDate);
92 bool pinExpirationDateNull() const;
94
95
96protected:
98 QString m_pinFile;
100
101private:
102 // Private constructor which generates an invalid object, for use withing ForgotPasswordResult::fromJson();
104};
105
106
107} // NS DTO
108
109namespace Support {
110
112
113template <>
115
116template<>
118
119} // NS DTO
120} // NS Jellyfin
121
122#endif // JELLYFIN_DTO_FORGOTPASSWORDRESULT_H
Value
Definition forgotpasswordaction.h:49
Definition forgotpasswordresult.h:50
void setPinFile(QString newPinFile)
Gets or sets the pin file.
Definition forgotpasswordresult.cpp:95
QString m_pinFile
Definition forgotpasswordresult.h:98
QJsonObject toJson() const
Definition forgotpasswordresult.cpp:70
QDateTime pinExpirationDate() const
Gets or sets the pin expiration date.
Definition forgotpasswordresult.cpp:106
void setAction(ForgotPasswordAction newAction)
Definition forgotpasswordresult.cpp:89
void setPinExpirationDate(QDateTime newPinExpirationDate)
Gets or sets the pin expiration date.
Definition forgotpasswordresult.cpp:108
QDateTime m_pinExpirationDate
Definition forgotpasswordresult.h:99
ForgotPasswordAction m_action
Definition forgotpasswordresult.h:97
bool pinFileNull() const
Definition forgotpasswordresult.cpp:98
void replaceData(ForgotPasswordResult &other)
Definition forgotpasswordresult.cpp:50
void setPinFileNull()
Definition forgotpasswordresult.cpp:102
static ForgotPasswordResult fromJson(QJsonObject source)
Definition forgotpasswordresult.cpp:56
void setPinExpirationDateNull()
Definition forgotpasswordresult.cpp:115
bool pinExpirationDateNull() const
Definition forgotpasswordresult.cpp:111
void setFromJson(QJsonObject source)
Definition forgotpasswordresult.cpp:63
QString pinFile() const
Gets or sets the pin file.
Definition forgotpasswordresult.cpp:93
ForgotPasswordAction action() const
Definition forgotpasswordresult.cpp:87
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