Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
updateplaylistdto.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_UPDATEPLAYLISTDTO_H
31#define JELLYFIN_DTO_UPDATEPLAYLISTDTO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QString>
37#include <QStringList>
38#include <optional>
39
42
43namespace Jellyfin {
44// Forward declaration
45class ApiClient;
46}
47namespace Jellyfin {
48namespace DTO {
49
50
52public: UpdatePlaylistDto();
54
58 void replaceData(UpdatePlaylistDto &other);
59
60 static UpdatePlaylistDto fromJson(QJsonObject source);
61 void setFromJson(QJsonObject source);
62 QJsonObject toJson() const;
63
64 // Properties
68 QString name() const;
72 void setName(QString newName);
73 bool nameNull() const;
74 void setNameNull();
75
79 QStringList ids() const;
83 void setIds(QStringList newIds);
84 bool idsNull() const;
85 void setIdsNull();
86
95 bool usersNull() const;
96 void setUsersNull();
97
101 std::optional<bool> isPublic() const;
105 void setIsPublic(std::optional<bool> newIsPublic);
106 bool isPublicNull() const;
107 void setIsPublicNull();
108
109
110protected:
111 QString m_name;
112 QStringList m_ids;
114 std::optional<bool> m_isPublic = std::nullopt;
115
116
117};
118
119
120} // NS DTO
121
122namespace Support {
123
125
126template <>
128
129template<>
131
132} // NS DTO
133} // NS Jellyfin
134
135#endif // JELLYFIN_DTO_UPDATEPLAYLISTDTO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition updateplaylistdto.h:51
void setName(QString newName)
Gets or sets the name of the new playlist.
Definition updateplaylistdto.cpp:95
bool idsNull() const
Definition updateplaylistdto.cpp:111
bool nameNull() const
Definition updateplaylistdto.cpp:98
QList< PlaylistUserPermissions > users() const
Gets or sets the playlist users.
Definition updateplaylistdto.cpp:119
bool isPublicNull() const
Definition updateplaylistdto.cpp:137
static UpdatePlaylistDto fromJson(QJsonObject source)
Definition updateplaylistdto.cpp:52
void setIsPublicNull()
Definition updateplaylistdto.cpp:141
QStringList ids() const
Gets or sets item ids of the playlist.
Definition updateplaylistdto.cpp:106
QStringList m_ids
Definition updateplaylistdto.h:112
QString name() const
Gets or sets the name of the new playlist.
Definition updateplaylistdto.cpp:93
QString m_name
Definition updateplaylistdto.h:111
std::optional< bool > m_isPublic
Definition updateplaylistdto.h:114
void setIsPublic(std::optional< bool > newIsPublic)
Gets or sets a value indicating whether the playlist is public.
Definition updateplaylistdto.cpp:134
void setFromJson(QJsonObject source)
Definition updateplaylistdto.cpp:59
void setNameNull()
Definition updateplaylistdto.cpp:102
UpdatePlaylistDto()
Definition updateplaylistdto.cpp:35
void replaceData(UpdatePlaylistDto &other)
Definition updateplaylistdto.cpp:45
bool usersNull() const
Definition updateplaylistdto.cpp:124
void setUsers(QList< PlaylistUserPermissions > newUsers)
Gets or sets the playlist users.
Definition updateplaylistdto.cpp:121
QList< PlaylistUserPermissions > m_users
Definition updateplaylistdto.h:113
void setUsersNull()
Definition updateplaylistdto.cpp:128
std::optional< bool > isPublic() const
Gets or sets a value indicating whether the playlist is public.
Definition updateplaylistdto.cpp:132
void setIdsNull()
Definition updateplaylistdto.cpp:115
QJsonObject toJson() const
Definition updateplaylistdto.cpp:67
void setIds(QStringList newIds)
Gets or sets item ids of the playlist.
Definition updateplaylistdto.cpp:108
Definition mediaplayer2.h:20
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
Jellyfin::DTO::UpdatePlaylistDto UpdatePlaylistDto
Definition updateplaylistdto.h:124
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