mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-12-08 00:13:55 +00:00
WIP: HttpLoader seems to work, Model still borked
This commit is contained in:
parent
e421adf733
commit
729e343661
1412 changed files with 13967 additions and 33794 deletions
|
|
@ -1,109 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/accessschedule.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
AccessSchedule::AccessSchedule() {}
|
||||
AccessSchedule::AccessSchedule(const AccessSchedule &other) :
|
||||
m_jellyfinId(other.m_jellyfinId),
|
||||
m_userId(other.m_userId),
|
||||
m_dayOfWeek(other.m_dayOfWeek),
|
||||
m_startHour(other.m_startHour),
|
||||
m_endHour(other.m_endHour){}
|
||||
|
||||
AccessSchedule AccessSchedule::fromJson(QJsonObject source) {
|
||||
AccessSchedule instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void AccessSchedule::setFromJson(QJsonObject source) {
|
||||
m_jellyfinId = Jellyfin::Support::fromJsonValue<qint32>(source["Id"]);
|
||||
m_userId = Jellyfin::Support::fromJsonValue<QUuid>(source["UserId"]);
|
||||
m_dayOfWeek = Jellyfin::Support::fromJsonValue<DynamicDayOfWeek>(source["DayOfWeek"]);
|
||||
m_startHour = Jellyfin::Support::fromJsonValue<double>(source["StartHour"]);
|
||||
m_endHour = Jellyfin::Support::fromJsonValue<double>(source["EndHour"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject AccessSchedule::toJson() {
|
||||
QJsonObject result;
|
||||
result["Id"] = Jellyfin::Support::toJsonValue<qint32>(m_jellyfinId);
|
||||
result["UserId"] = Jellyfin::Support::toJsonValue<QUuid>(m_userId);
|
||||
result["DayOfWeek"] = Jellyfin::Support::toJsonValue<DynamicDayOfWeek>(m_dayOfWeek);
|
||||
result["StartHour"] = Jellyfin::Support::toJsonValue<double>(m_startHour);
|
||||
result["EndHour"] = Jellyfin::Support::toJsonValue<double>(m_endHour);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
qint32 AccessSchedule::jellyfinId() const { return m_jellyfinId; }
|
||||
|
||||
void AccessSchedule::setJellyfinId(qint32 newJellyfinId) {
|
||||
m_jellyfinId = newJellyfinId;
|
||||
}
|
||||
QUuid AccessSchedule::userId() const { return m_userId; }
|
||||
|
||||
void AccessSchedule::setUserId(QUuid newUserId) {
|
||||
m_userId = newUserId;
|
||||
}
|
||||
DynamicDayOfWeek AccessSchedule::dayOfWeek() const { return m_dayOfWeek; }
|
||||
|
||||
void AccessSchedule::setDayOfWeek(DynamicDayOfWeek newDayOfWeek) {
|
||||
m_dayOfWeek = newDayOfWeek;
|
||||
}
|
||||
double AccessSchedule::startHour() const { return m_startHour; }
|
||||
|
||||
void AccessSchedule::setStartHour(double newStartHour) {
|
||||
m_startHour = newStartHour;
|
||||
}
|
||||
double AccessSchedule::endHour() const { return m_endHour; }
|
||||
|
||||
void AccessSchedule::setEndHour(double newEndHour) {
|
||||
m_endHour = newEndHour;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AccessSchedule = Jellyfin::DTO::AccessSchedule;
|
||||
|
||||
template <>
|
||||
AccessSchedule fromJsonValue<AccessSchedule>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return AccessSchedule::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,149 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/activitylogentry.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ActivityLogEntry::ActivityLogEntry() {}
|
||||
ActivityLogEntry::ActivityLogEntry(const ActivityLogEntry &other) :
|
||||
m_jellyfinId(other.m_jellyfinId),
|
||||
m_name(other.m_name),
|
||||
m_overview(other.m_overview),
|
||||
m_shortOverview(other.m_shortOverview),
|
||||
m_type(other.m_type),
|
||||
m_itemId(other.m_itemId),
|
||||
m_date(other.m_date),
|
||||
m_userId(other.m_userId),
|
||||
m_userPrimaryImageTag(other.m_userPrimaryImageTag),
|
||||
m_severity(other.m_severity){}
|
||||
|
||||
ActivityLogEntry ActivityLogEntry::fromJson(QJsonObject source) {
|
||||
ActivityLogEntry instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ActivityLogEntry::setFromJson(QJsonObject source) {
|
||||
m_jellyfinId = Jellyfin::Support::fromJsonValue<qint64>(source["Id"]);
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_overview = Jellyfin::Support::fromJsonValue<QString>(source["Overview"]);
|
||||
m_shortOverview = Jellyfin::Support::fromJsonValue<QString>(source["ShortOverview"]);
|
||||
m_type = Jellyfin::Support::fromJsonValue<QString>(source["Type"]);
|
||||
m_itemId = Jellyfin::Support::fromJsonValue<QString>(source["ItemId"]);
|
||||
m_date = Jellyfin::Support::fromJsonValue<QDateTime>(source["Date"]);
|
||||
m_userId = Jellyfin::Support::fromJsonValue<QUuid>(source["UserId"]);
|
||||
m_userPrimaryImageTag = Jellyfin::Support::fromJsonValue<QString>(source["UserPrimaryImageTag"]);
|
||||
m_severity = Jellyfin::Support::fromJsonValue<LogLevel>(source["Severity"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ActivityLogEntry::toJson() {
|
||||
QJsonObject result;
|
||||
result["Id"] = Jellyfin::Support::toJsonValue<qint64>(m_jellyfinId);
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Overview"] = Jellyfin::Support::toJsonValue<QString>(m_overview);
|
||||
result["ShortOverview"] = Jellyfin::Support::toJsonValue<QString>(m_shortOverview);
|
||||
result["Type"] = Jellyfin::Support::toJsonValue<QString>(m_type);
|
||||
result["ItemId"] = Jellyfin::Support::toJsonValue<QString>(m_itemId);
|
||||
result["Date"] = Jellyfin::Support::toJsonValue<QDateTime>(m_date);
|
||||
result["UserId"] = Jellyfin::Support::toJsonValue<QUuid>(m_userId);
|
||||
result["UserPrimaryImageTag"] = Jellyfin::Support::toJsonValue<QString>(m_userPrimaryImageTag);
|
||||
result["Severity"] = Jellyfin::Support::toJsonValue<LogLevel>(m_severity);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
qint64 ActivityLogEntry::jellyfinId() const { return m_jellyfinId; }
|
||||
|
||||
void ActivityLogEntry::setJellyfinId(qint64 newJellyfinId) {
|
||||
m_jellyfinId = newJellyfinId;
|
||||
}
|
||||
QString ActivityLogEntry::name() const { return m_name; }
|
||||
|
||||
void ActivityLogEntry::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString ActivityLogEntry::overview() const { return m_overview; }
|
||||
|
||||
void ActivityLogEntry::setOverview(QString newOverview) {
|
||||
m_overview = newOverview;
|
||||
}
|
||||
QString ActivityLogEntry::shortOverview() const { return m_shortOverview; }
|
||||
|
||||
void ActivityLogEntry::setShortOverview(QString newShortOverview) {
|
||||
m_shortOverview = newShortOverview;
|
||||
}
|
||||
QString ActivityLogEntry::type() const { return m_type; }
|
||||
|
||||
void ActivityLogEntry::setType(QString newType) {
|
||||
m_type = newType;
|
||||
}
|
||||
QString ActivityLogEntry::itemId() const { return m_itemId; }
|
||||
|
||||
void ActivityLogEntry::setItemId(QString newItemId) {
|
||||
m_itemId = newItemId;
|
||||
}
|
||||
QDateTime ActivityLogEntry::date() const { return m_date; }
|
||||
|
||||
void ActivityLogEntry::setDate(QDateTime newDate) {
|
||||
m_date = newDate;
|
||||
}
|
||||
QUuid ActivityLogEntry::userId() const { return m_userId; }
|
||||
|
||||
void ActivityLogEntry::setUserId(QUuid newUserId) {
|
||||
m_userId = newUserId;
|
||||
}
|
||||
QString ActivityLogEntry::userPrimaryImageTag() const { return m_userPrimaryImageTag; }
|
||||
|
||||
void ActivityLogEntry::setUserPrimaryImageTag(QString newUserPrimaryImageTag) {
|
||||
m_userPrimaryImageTag = newUserPrimaryImageTag;
|
||||
}
|
||||
LogLevel ActivityLogEntry::severity() const { return m_severity; }
|
||||
|
||||
void ActivityLogEntry::setSeverity(LogLevel newSeverity) {
|
||||
m_severity = newSeverity;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ActivityLogEntry = Jellyfin::DTO::ActivityLogEntry;
|
||||
|
||||
template <>
|
||||
ActivityLogEntry fromJsonValue<ActivityLogEntry>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ActivityLogEntry::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/activitylogentryqueryresult.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ActivityLogEntryQueryResult::ActivityLogEntryQueryResult() {}
|
||||
ActivityLogEntryQueryResult::ActivityLogEntryQueryResult(const ActivityLogEntryQueryResult &other) :
|
||||
m_items(other.m_items),
|
||||
m_totalRecordCount(other.m_totalRecordCount),
|
||||
m_startIndex(other.m_startIndex){}
|
||||
|
||||
ActivityLogEntryQueryResult ActivityLogEntryQueryResult::fromJson(QJsonObject source) {
|
||||
ActivityLogEntryQueryResult instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ActivityLogEntryQueryResult::setFromJson(QJsonObject source) {
|
||||
m_items = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<ActivityLogEntry>>>(source["Items"]);
|
||||
m_totalRecordCount = Jellyfin::Support::fromJsonValue<qint32>(source["TotalRecordCount"]);
|
||||
m_startIndex = Jellyfin::Support::fromJsonValue<qint32>(source["StartIndex"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ActivityLogEntryQueryResult::toJson() {
|
||||
QJsonObject result;
|
||||
result["Items"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<ActivityLogEntry>>>(m_items);
|
||||
result["TotalRecordCount"] = Jellyfin::Support::toJsonValue<qint32>(m_totalRecordCount);
|
||||
result["StartIndex"] = Jellyfin::Support::toJsonValue<qint32>(m_startIndex);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QList<QSharedPointer<ActivityLogEntry>> ActivityLogEntryQueryResult::items() const { return m_items; }
|
||||
|
||||
void ActivityLogEntryQueryResult::setItems(QList<QSharedPointer<ActivityLogEntry>> newItems) {
|
||||
m_items = newItems;
|
||||
}
|
||||
qint32 ActivityLogEntryQueryResult::totalRecordCount() const { return m_totalRecordCount; }
|
||||
|
||||
void ActivityLogEntryQueryResult::setTotalRecordCount(qint32 newTotalRecordCount) {
|
||||
m_totalRecordCount = newTotalRecordCount;
|
||||
}
|
||||
qint32 ActivityLogEntryQueryResult::startIndex() const { return m_startIndex; }
|
||||
|
||||
void ActivityLogEntryQueryResult::setStartIndex(qint32 newStartIndex) {
|
||||
m_startIndex = newStartIndex;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ActivityLogEntryQueryResult = Jellyfin::DTO::ActivityLogEntryQueryResult;
|
||||
|
||||
template <>
|
||||
ActivityLogEntryQueryResult fromJsonValue<ActivityLogEntryQueryResult>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ActivityLogEntryQueryResult::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/addvirtualfolderdto.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
AddVirtualFolderDto::AddVirtualFolderDto() {}
|
||||
AddVirtualFolderDto::AddVirtualFolderDto(const AddVirtualFolderDto &other) :
|
||||
m_libraryOptions(other.m_libraryOptions){}
|
||||
|
||||
AddVirtualFolderDto AddVirtualFolderDto::fromJson(QJsonObject source) {
|
||||
AddVirtualFolderDto instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void AddVirtualFolderDto::setFromJson(QJsonObject source) {
|
||||
m_libraryOptions = Jellyfin::Support::fromJsonValue<QSharedPointer<LibraryOptions>>(source["LibraryOptions"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject AddVirtualFolderDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["LibraryOptions"] = Jellyfin::Support::toJsonValue<QSharedPointer<LibraryOptions>>(m_libraryOptions);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QSharedPointer<LibraryOptions> AddVirtualFolderDto::libraryOptions() const { return m_libraryOptions; }
|
||||
|
||||
void AddVirtualFolderDto::setLibraryOptions(QSharedPointer<LibraryOptions> newLibraryOptions) {
|
||||
m_libraryOptions = newLibraryOptions;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AddVirtualFolderDto = Jellyfin::DTO::AddVirtualFolderDto;
|
||||
|
||||
template <>
|
||||
AddVirtualFolderDto fromJsonValue<AddVirtualFolderDto>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return AddVirtualFolderDto::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,173 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/albuminfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
AlbumInfo::AlbumInfo() {}
|
||||
AlbumInfo::AlbumInfo(const AlbumInfo &other) :
|
||||
m_name(other.m_name),
|
||||
m_path(other.m_path),
|
||||
m_metadataLanguage(other.m_metadataLanguage),
|
||||
m_metadataCountryCode(other.m_metadataCountryCode),
|
||||
m_providerIds(other.m_providerIds),
|
||||
m_year(other.m_year),
|
||||
m_indexNumber(other.m_indexNumber),
|
||||
m_parentIndexNumber(other.m_parentIndexNumber),
|
||||
m_premiereDate(other.m_premiereDate),
|
||||
m_isAutomated(other.m_isAutomated),
|
||||
m_albumArtists(other.m_albumArtists),
|
||||
m_artistProviderIds(other.m_artistProviderIds),
|
||||
m_songInfos(other.m_songInfos){}
|
||||
|
||||
AlbumInfo AlbumInfo::fromJson(QJsonObject source) {
|
||||
AlbumInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void AlbumInfo::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_path = Jellyfin::Support::fromJsonValue<QString>(source["Path"]);
|
||||
m_metadataLanguage = Jellyfin::Support::fromJsonValue<QString>(source["MetadataLanguage"]);
|
||||
m_metadataCountryCode = Jellyfin::Support::fromJsonValue<QString>(source["MetadataCountryCode"]);
|
||||
m_providerIds = Jellyfin::Support::fromJsonValue<QJsonObject>(source["ProviderIds"]);
|
||||
m_year = Jellyfin::Support::fromJsonValue<qint32>(source["Year"]);
|
||||
m_indexNumber = Jellyfin::Support::fromJsonValue<qint32>(source["IndexNumber"]);
|
||||
m_parentIndexNumber = Jellyfin::Support::fromJsonValue<qint32>(source["ParentIndexNumber"]);
|
||||
m_premiereDate = Jellyfin::Support::fromJsonValue<QDateTime>(source["PremiereDate"]);
|
||||
m_isAutomated = Jellyfin::Support::fromJsonValue<bool>(source["IsAutomated"]);
|
||||
m_albumArtists = Jellyfin::Support::fromJsonValue<QStringList>(source["AlbumArtists"]);
|
||||
m_artistProviderIds = Jellyfin::Support::fromJsonValue<QJsonObject>(source["ArtistProviderIds"]);
|
||||
m_songInfos = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<SongInfo>>>(source["SongInfos"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject AlbumInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Path"] = Jellyfin::Support::toJsonValue<QString>(m_path);
|
||||
result["MetadataLanguage"] = Jellyfin::Support::toJsonValue<QString>(m_metadataLanguage);
|
||||
result["MetadataCountryCode"] = Jellyfin::Support::toJsonValue<QString>(m_metadataCountryCode);
|
||||
result["ProviderIds"] = Jellyfin::Support::toJsonValue<QJsonObject>(m_providerIds);
|
||||
result["Year"] = Jellyfin::Support::toJsonValue<qint32>(m_year);
|
||||
result["IndexNumber"] = Jellyfin::Support::toJsonValue<qint32>(m_indexNumber);
|
||||
result["ParentIndexNumber"] = Jellyfin::Support::toJsonValue<qint32>(m_parentIndexNumber);
|
||||
result["PremiereDate"] = Jellyfin::Support::toJsonValue<QDateTime>(m_premiereDate);
|
||||
result["IsAutomated"] = Jellyfin::Support::toJsonValue<bool>(m_isAutomated);
|
||||
result["AlbumArtists"] = Jellyfin::Support::toJsonValue<QStringList>(m_albumArtists);
|
||||
result["ArtistProviderIds"] = Jellyfin::Support::toJsonValue<QJsonObject>(m_artistProviderIds);
|
||||
result["SongInfos"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<SongInfo>>>(m_songInfos);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString AlbumInfo::name() const { return m_name; }
|
||||
|
||||
void AlbumInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString AlbumInfo::path() const { return m_path; }
|
||||
|
||||
void AlbumInfo::setPath(QString newPath) {
|
||||
m_path = newPath;
|
||||
}
|
||||
QString AlbumInfo::metadataLanguage() const { return m_metadataLanguage; }
|
||||
|
||||
void AlbumInfo::setMetadataLanguage(QString newMetadataLanguage) {
|
||||
m_metadataLanguage = newMetadataLanguage;
|
||||
}
|
||||
QString AlbumInfo::metadataCountryCode() const { return m_metadataCountryCode; }
|
||||
|
||||
void AlbumInfo::setMetadataCountryCode(QString newMetadataCountryCode) {
|
||||
m_metadataCountryCode = newMetadataCountryCode;
|
||||
}
|
||||
QJsonObject AlbumInfo::providerIds() const { return m_providerIds; }
|
||||
|
||||
void AlbumInfo::setProviderIds(QJsonObject newProviderIds) {
|
||||
m_providerIds = newProviderIds;
|
||||
}
|
||||
qint32 AlbumInfo::year() const { return m_year; }
|
||||
|
||||
void AlbumInfo::setYear(qint32 newYear) {
|
||||
m_year = newYear;
|
||||
}
|
||||
qint32 AlbumInfo::indexNumber() const { return m_indexNumber; }
|
||||
|
||||
void AlbumInfo::setIndexNumber(qint32 newIndexNumber) {
|
||||
m_indexNumber = newIndexNumber;
|
||||
}
|
||||
qint32 AlbumInfo::parentIndexNumber() const { return m_parentIndexNumber; }
|
||||
|
||||
void AlbumInfo::setParentIndexNumber(qint32 newParentIndexNumber) {
|
||||
m_parentIndexNumber = newParentIndexNumber;
|
||||
}
|
||||
QDateTime AlbumInfo::premiereDate() const { return m_premiereDate; }
|
||||
|
||||
void AlbumInfo::setPremiereDate(QDateTime newPremiereDate) {
|
||||
m_premiereDate = newPremiereDate;
|
||||
}
|
||||
bool AlbumInfo::isAutomated() const { return m_isAutomated; }
|
||||
|
||||
void AlbumInfo::setIsAutomated(bool newIsAutomated) {
|
||||
m_isAutomated = newIsAutomated;
|
||||
}
|
||||
QStringList AlbumInfo::albumArtists() const { return m_albumArtists; }
|
||||
|
||||
void AlbumInfo::setAlbumArtists(QStringList newAlbumArtists) {
|
||||
m_albumArtists = newAlbumArtists;
|
||||
}
|
||||
QJsonObject AlbumInfo::artistProviderIds() const { return m_artistProviderIds; }
|
||||
|
||||
void AlbumInfo::setArtistProviderIds(QJsonObject newArtistProviderIds) {
|
||||
m_artistProviderIds = newArtistProviderIds;
|
||||
}
|
||||
QList<QSharedPointer<SongInfo>> AlbumInfo::songInfos() const { return m_songInfos; }
|
||||
|
||||
void AlbumInfo::setSongInfos(QList<QSharedPointer<SongInfo>> newSongInfos) {
|
||||
m_songInfos = newSongInfos;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AlbumInfo = Jellyfin::DTO::AlbumInfo;
|
||||
|
||||
template <>
|
||||
AlbumInfo fromJsonValue<AlbumInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return AlbumInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/albuminforemotesearchquery.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
AlbumInfoRemoteSearchQuery::AlbumInfoRemoteSearchQuery() {}
|
||||
AlbumInfoRemoteSearchQuery::AlbumInfoRemoteSearchQuery(const AlbumInfoRemoteSearchQuery &other) :
|
||||
m_searchInfo(other.m_searchInfo),
|
||||
m_itemId(other.m_itemId),
|
||||
m_searchProviderName(other.m_searchProviderName),
|
||||
m_includeDisabledProviders(other.m_includeDisabledProviders){}
|
||||
|
||||
AlbumInfoRemoteSearchQuery AlbumInfoRemoteSearchQuery::fromJson(QJsonObject source) {
|
||||
AlbumInfoRemoteSearchQuery instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void AlbumInfoRemoteSearchQuery::setFromJson(QJsonObject source) {
|
||||
m_searchInfo = Jellyfin::Support::fromJsonValue<QSharedPointer<AlbumInfo>>(source["SearchInfo"]);
|
||||
m_itemId = Jellyfin::Support::fromJsonValue<QUuid>(source["ItemId"]);
|
||||
m_searchProviderName = Jellyfin::Support::fromJsonValue<QString>(source["SearchProviderName"]);
|
||||
m_includeDisabledProviders = Jellyfin::Support::fromJsonValue<bool>(source["IncludeDisabledProviders"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject AlbumInfoRemoteSearchQuery::toJson() {
|
||||
QJsonObject result;
|
||||
result["SearchInfo"] = Jellyfin::Support::toJsonValue<QSharedPointer<AlbumInfo>>(m_searchInfo);
|
||||
result["ItemId"] = Jellyfin::Support::toJsonValue<QUuid>(m_itemId);
|
||||
result["SearchProviderName"] = Jellyfin::Support::toJsonValue<QString>(m_searchProviderName);
|
||||
result["IncludeDisabledProviders"] = Jellyfin::Support::toJsonValue<bool>(m_includeDisabledProviders);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QSharedPointer<AlbumInfo> AlbumInfoRemoteSearchQuery::searchInfo() const { return m_searchInfo; }
|
||||
|
||||
void AlbumInfoRemoteSearchQuery::setSearchInfo(QSharedPointer<AlbumInfo> newSearchInfo) {
|
||||
m_searchInfo = newSearchInfo;
|
||||
}
|
||||
QUuid AlbumInfoRemoteSearchQuery::itemId() const { return m_itemId; }
|
||||
|
||||
void AlbumInfoRemoteSearchQuery::setItemId(QUuid newItemId) {
|
||||
m_itemId = newItemId;
|
||||
}
|
||||
QString AlbumInfoRemoteSearchQuery::searchProviderName() const { return m_searchProviderName; }
|
||||
|
||||
void AlbumInfoRemoteSearchQuery::setSearchProviderName(QString newSearchProviderName) {
|
||||
m_searchProviderName = newSearchProviderName;
|
||||
}
|
||||
bool AlbumInfoRemoteSearchQuery::includeDisabledProviders() const { return m_includeDisabledProviders; }
|
||||
|
||||
void AlbumInfoRemoteSearchQuery::setIncludeDisabledProviders(bool newIncludeDisabledProviders) {
|
||||
m_includeDisabledProviders = newIncludeDisabledProviders;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AlbumInfoRemoteSearchQuery = Jellyfin::DTO::AlbumInfoRemoteSearchQuery;
|
||||
|
||||
template <>
|
||||
AlbumInfoRemoteSearchQuery fromJsonValue<AlbumInfoRemoteSearchQuery>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return AlbumInfoRemoteSearchQuery::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/allthememediaresult.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
AllThemeMediaResult::AllThemeMediaResult() {}
|
||||
AllThemeMediaResult::AllThemeMediaResult(const AllThemeMediaResult &other) :
|
||||
m_themeVideosResult(other.m_themeVideosResult),
|
||||
m_themeSongsResult(other.m_themeSongsResult),
|
||||
m_soundtrackSongsResult(other.m_soundtrackSongsResult){}
|
||||
|
||||
AllThemeMediaResult AllThemeMediaResult::fromJson(QJsonObject source) {
|
||||
AllThemeMediaResult instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void AllThemeMediaResult::setFromJson(QJsonObject source) {
|
||||
m_themeVideosResult = Jellyfin::Support::fromJsonValue<QSharedPointer<ThemeMediaResult>>(source["ThemeVideosResult"]);
|
||||
m_themeSongsResult = Jellyfin::Support::fromJsonValue<QSharedPointer<ThemeMediaResult>>(source["ThemeSongsResult"]);
|
||||
m_soundtrackSongsResult = Jellyfin::Support::fromJsonValue<QSharedPointer<ThemeMediaResult>>(source["SoundtrackSongsResult"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject AllThemeMediaResult::toJson() {
|
||||
QJsonObject result;
|
||||
result["ThemeVideosResult"] = Jellyfin::Support::toJsonValue<QSharedPointer<ThemeMediaResult>>(m_themeVideosResult);
|
||||
result["ThemeSongsResult"] = Jellyfin::Support::toJsonValue<QSharedPointer<ThemeMediaResult>>(m_themeSongsResult);
|
||||
result["SoundtrackSongsResult"] = Jellyfin::Support::toJsonValue<QSharedPointer<ThemeMediaResult>>(m_soundtrackSongsResult);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QSharedPointer<ThemeMediaResult> AllThemeMediaResult::themeVideosResult() const { return m_themeVideosResult; }
|
||||
|
||||
void AllThemeMediaResult::setThemeVideosResult(QSharedPointer<ThemeMediaResult> newThemeVideosResult) {
|
||||
m_themeVideosResult = newThemeVideosResult;
|
||||
}
|
||||
QSharedPointer<ThemeMediaResult> AllThemeMediaResult::themeSongsResult() const { return m_themeSongsResult; }
|
||||
|
||||
void AllThemeMediaResult::setThemeSongsResult(QSharedPointer<ThemeMediaResult> newThemeSongsResult) {
|
||||
m_themeSongsResult = newThemeSongsResult;
|
||||
}
|
||||
QSharedPointer<ThemeMediaResult> AllThemeMediaResult::soundtrackSongsResult() const { return m_soundtrackSongsResult; }
|
||||
|
||||
void AllThemeMediaResult::setSoundtrackSongsResult(QSharedPointer<ThemeMediaResult> newSoundtrackSongsResult) {
|
||||
m_soundtrackSongsResult = newSoundtrackSongsResult;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AllThemeMediaResult = Jellyfin::DTO::AllThemeMediaResult;
|
||||
|
||||
template <>
|
||||
AllThemeMediaResult fromJsonValue<AllThemeMediaResult>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return AllThemeMediaResult::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/architecture.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ArchitectureClass::ArchitectureClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using Architecture = Jellyfin::DTO::Architecture;
|
||||
|
||||
template <>
|
||||
Architecture fromJsonValue<Architecture>(const QJsonValue &source) {
|
||||
if (!source.isString()) return Architecture::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("X86")) {
|
||||
return Architecture::X86;
|
||||
}
|
||||
if (str == QStringLiteral("X64")) {
|
||||
return Architecture::X64;
|
||||
}
|
||||
if (str == QStringLiteral("Arm")) {
|
||||
return Architecture::Arm;
|
||||
}
|
||||
if (str == QStringLiteral("Arm64")) {
|
||||
return Architecture::Arm64;
|
||||
}
|
||||
if (str == QStringLiteral("Wasm")) {
|
||||
return Architecture::Wasm;
|
||||
}
|
||||
|
||||
return Architecture::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,157 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/artistinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ArtistInfo::ArtistInfo() {}
|
||||
ArtistInfo::ArtistInfo(const ArtistInfo &other) :
|
||||
m_name(other.m_name),
|
||||
m_path(other.m_path),
|
||||
m_metadataLanguage(other.m_metadataLanguage),
|
||||
m_metadataCountryCode(other.m_metadataCountryCode),
|
||||
m_providerIds(other.m_providerIds),
|
||||
m_year(other.m_year),
|
||||
m_indexNumber(other.m_indexNumber),
|
||||
m_parentIndexNumber(other.m_parentIndexNumber),
|
||||
m_premiereDate(other.m_premiereDate),
|
||||
m_isAutomated(other.m_isAutomated),
|
||||
m_songInfos(other.m_songInfos){}
|
||||
|
||||
ArtistInfo ArtistInfo::fromJson(QJsonObject source) {
|
||||
ArtistInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ArtistInfo::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_path = Jellyfin::Support::fromJsonValue<QString>(source["Path"]);
|
||||
m_metadataLanguage = Jellyfin::Support::fromJsonValue<QString>(source["MetadataLanguage"]);
|
||||
m_metadataCountryCode = Jellyfin::Support::fromJsonValue<QString>(source["MetadataCountryCode"]);
|
||||
m_providerIds = Jellyfin::Support::fromJsonValue<QJsonObject>(source["ProviderIds"]);
|
||||
m_year = Jellyfin::Support::fromJsonValue<qint32>(source["Year"]);
|
||||
m_indexNumber = Jellyfin::Support::fromJsonValue<qint32>(source["IndexNumber"]);
|
||||
m_parentIndexNumber = Jellyfin::Support::fromJsonValue<qint32>(source["ParentIndexNumber"]);
|
||||
m_premiereDate = Jellyfin::Support::fromJsonValue<QDateTime>(source["PremiereDate"]);
|
||||
m_isAutomated = Jellyfin::Support::fromJsonValue<bool>(source["IsAutomated"]);
|
||||
m_songInfos = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<SongInfo>>>(source["SongInfos"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ArtistInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Path"] = Jellyfin::Support::toJsonValue<QString>(m_path);
|
||||
result["MetadataLanguage"] = Jellyfin::Support::toJsonValue<QString>(m_metadataLanguage);
|
||||
result["MetadataCountryCode"] = Jellyfin::Support::toJsonValue<QString>(m_metadataCountryCode);
|
||||
result["ProviderIds"] = Jellyfin::Support::toJsonValue<QJsonObject>(m_providerIds);
|
||||
result["Year"] = Jellyfin::Support::toJsonValue<qint32>(m_year);
|
||||
result["IndexNumber"] = Jellyfin::Support::toJsonValue<qint32>(m_indexNumber);
|
||||
result["ParentIndexNumber"] = Jellyfin::Support::toJsonValue<qint32>(m_parentIndexNumber);
|
||||
result["PremiereDate"] = Jellyfin::Support::toJsonValue<QDateTime>(m_premiereDate);
|
||||
result["IsAutomated"] = Jellyfin::Support::toJsonValue<bool>(m_isAutomated);
|
||||
result["SongInfos"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<SongInfo>>>(m_songInfos);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString ArtistInfo::name() const { return m_name; }
|
||||
|
||||
void ArtistInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString ArtistInfo::path() const { return m_path; }
|
||||
|
||||
void ArtistInfo::setPath(QString newPath) {
|
||||
m_path = newPath;
|
||||
}
|
||||
QString ArtistInfo::metadataLanguage() const { return m_metadataLanguage; }
|
||||
|
||||
void ArtistInfo::setMetadataLanguage(QString newMetadataLanguage) {
|
||||
m_metadataLanguage = newMetadataLanguage;
|
||||
}
|
||||
QString ArtistInfo::metadataCountryCode() const { return m_metadataCountryCode; }
|
||||
|
||||
void ArtistInfo::setMetadataCountryCode(QString newMetadataCountryCode) {
|
||||
m_metadataCountryCode = newMetadataCountryCode;
|
||||
}
|
||||
QJsonObject ArtistInfo::providerIds() const { return m_providerIds; }
|
||||
|
||||
void ArtistInfo::setProviderIds(QJsonObject newProviderIds) {
|
||||
m_providerIds = newProviderIds;
|
||||
}
|
||||
qint32 ArtistInfo::year() const { return m_year; }
|
||||
|
||||
void ArtistInfo::setYear(qint32 newYear) {
|
||||
m_year = newYear;
|
||||
}
|
||||
qint32 ArtistInfo::indexNumber() const { return m_indexNumber; }
|
||||
|
||||
void ArtistInfo::setIndexNumber(qint32 newIndexNumber) {
|
||||
m_indexNumber = newIndexNumber;
|
||||
}
|
||||
qint32 ArtistInfo::parentIndexNumber() const { return m_parentIndexNumber; }
|
||||
|
||||
void ArtistInfo::setParentIndexNumber(qint32 newParentIndexNumber) {
|
||||
m_parentIndexNumber = newParentIndexNumber;
|
||||
}
|
||||
QDateTime ArtistInfo::premiereDate() const { return m_premiereDate; }
|
||||
|
||||
void ArtistInfo::setPremiereDate(QDateTime newPremiereDate) {
|
||||
m_premiereDate = newPremiereDate;
|
||||
}
|
||||
bool ArtistInfo::isAutomated() const { return m_isAutomated; }
|
||||
|
||||
void ArtistInfo::setIsAutomated(bool newIsAutomated) {
|
||||
m_isAutomated = newIsAutomated;
|
||||
}
|
||||
QList<QSharedPointer<SongInfo>> ArtistInfo::songInfos() const { return m_songInfos; }
|
||||
|
||||
void ArtistInfo::setSongInfos(QList<QSharedPointer<SongInfo>> newSongInfos) {
|
||||
m_songInfos = newSongInfos;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ArtistInfo = Jellyfin::DTO::ArtistInfo;
|
||||
|
||||
template <>
|
||||
ArtistInfo fromJsonValue<ArtistInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ArtistInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/artistinforemotesearchquery.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ArtistInfoRemoteSearchQuery::ArtistInfoRemoteSearchQuery() {}
|
||||
ArtistInfoRemoteSearchQuery::ArtistInfoRemoteSearchQuery(const ArtistInfoRemoteSearchQuery &other) :
|
||||
m_searchInfo(other.m_searchInfo),
|
||||
m_itemId(other.m_itemId),
|
||||
m_searchProviderName(other.m_searchProviderName),
|
||||
m_includeDisabledProviders(other.m_includeDisabledProviders){}
|
||||
|
||||
ArtistInfoRemoteSearchQuery ArtistInfoRemoteSearchQuery::fromJson(QJsonObject source) {
|
||||
ArtistInfoRemoteSearchQuery instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ArtistInfoRemoteSearchQuery::setFromJson(QJsonObject source) {
|
||||
m_searchInfo = Jellyfin::Support::fromJsonValue<QSharedPointer<ArtistInfo>>(source["SearchInfo"]);
|
||||
m_itemId = Jellyfin::Support::fromJsonValue<QUuid>(source["ItemId"]);
|
||||
m_searchProviderName = Jellyfin::Support::fromJsonValue<QString>(source["SearchProviderName"]);
|
||||
m_includeDisabledProviders = Jellyfin::Support::fromJsonValue<bool>(source["IncludeDisabledProviders"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ArtistInfoRemoteSearchQuery::toJson() {
|
||||
QJsonObject result;
|
||||
result["SearchInfo"] = Jellyfin::Support::toJsonValue<QSharedPointer<ArtistInfo>>(m_searchInfo);
|
||||
result["ItemId"] = Jellyfin::Support::toJsonValue<QUuid>(m_itemId);
|
||||
result["SearchProviderName"] = Jellyfin::Support::toJsonValue<QString>(m_searchProviderName);
|
||||
result["IncludeDisabledProviders"] = Jellyfin::Support::toJsonValue<bool>(m_includeDisabledProviders);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QSharedPointer<ArtistInfo> ArtistInfoRemoteSearchQuery::searchInfo() const { return m_searchInfo; }
|
||||
|
||||
void ArtistInfoRemoteSearchQuery::setSearchInfo(QSharedPointer<ArtistInfo> newSearchInfo) {
|
||||
m_searchInfo = newSearchInfo;
|
||||
}
|
||||
QUuid ArtistInfoRemoteSearchQuery::itemId() const { return m_itemId; }
|
||||
|
||||
void ArtistInfoRemoteSearchQuery::setItemId(QUuid newItemId) {
|
||||
m_itemId = newItemId;
|
||||
}
|
||||
QString ArtistInfoRemoteSearchQuery::searchProviderName() const { return m_searchProviderName; }
|
||||
|
||||
void ArtistInfoRemoteSearchQuery::setSearchProviderName(QString newSearchProviderName) {
|
||||
m_searchProviderName = newSearchProviderName;
|
||||
}
|
||||
bool ArtistInfoRemoteSearchQuery::includeDisabledProviders() const { return m_includeDisabledProviders; }
|
||||
|
||||
void ArtistInfoRemoteSearchQuery::setIncludeDisabledProviders(bool newIncludeDisabledProviders) {
|
||||
m_includeDisabledProviders = newIncludeDisabledProviders;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ArtistInfoRemoteSearchQuery = Jellyfin::DTO::ArtistInfoRemoteSearchQuery;
|
||||
|
||||
template <>
|
||||
ArtistInfoRemoteSearchQuery fromJsonValue<ArtistInfoRemoteSearchQuery>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ArtistInfoRemoteSearchQuery::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/authenticateuserbyname.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
AuthenticateUserByName::AuthenticateUserByName() {}
|
||||
AuthenticateUserByName::AuthenticateUserByName(const AuthenticateUserByName &other) :
|
||||
m_username(other.m_username),
|
||||
m_pw(other.m_pw),
|
||||
m_password(other.m_password){}
|
||||
|
||||
AuthenticateUserByName AuthenticateUserByName::fromJson(QJsonObject source) {
|
||||
AuthenticateUserByName instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void AuthenticateUserByName::setFromJson(QJsonObject source) {
|
||||
m_username = Jellyfin::Support::fromJsonValue<QString>(source["Username"]);
|
||||
m_pw = Jellyfin::Support::fromJsonValue<QString>(source["Pw"]);
|
||||
m_password = Jellyfin::Support::fromJsonValue<QString>(source["Password"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject AuthenticateUserByName::toJson() {
|
||||
QJsonObject result;
|
||||
result["Username"] = Jellyfin::Support::toJsonValue<QString>(m_username);
|
||||
result["Pw"] = Jellyfin::Support::toJsonValue<QString>(m_pw);
|
||||
result["Password"] = Jellyfin::Support::toJsonValue<QString>(m_password);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString AuthenticateUserByName::username() const { return m_username; }
|
||||
|
||||
void AuthenticateUserByName::setUsername(QString newUsername) {
|
||||
m_username = newUsername;
|
||||
}
|
||||
QString AuthenticateUserByName::pw() const { return m_pw; }
|
||||
|
||||
void AuthenticateUserByName::setPw(QString newPw) {
|
||||
m_pw = newPw;
|
||||
}
|
||||
QString AuthenticateUserByName::password() const { return m_password; }
|
||||
|
||||
void AuthenticateUserByName::setPassword(QString newPassword) {
|
||||
m_password = newPassword;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AuthenticateUserByName = Jellyfin::DTO::AuthenticateUserByName;
|
||||
|
||||
template <>
|
||||
AuthenticateUserByName fromJsonValue<AuthenticateUserByName>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return AuthenticateUserByName::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,165 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/authenticationinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
AuthenticationInfo::AuthenticationInfo() {}
|
||||
AuthenticationInfo::AuthenticationInfo(const AuthenticationInfo &other) :
|
||||
m_jellyfinId(other.m_jellyfinId),
|
||||
m_accessToken(other.m_accessToken),
|
||||
m_deviceId(other.m_deviceId),
|
||||
m_appName(other.m_appName),
|
||||
m_appVersion(other.m_appVersion),
|
||||
m_deviceName(other.m_deviceName),
|
||||
m_userId(other.m_userId),
|
||||
m_isActive(other.m_isActive),
|
||||
m_dateCreated(other.m_dateCreated),
|
||||
m_dateRevoked(other.m_dateRevoked),
|
||||
m_dateLastActivity(other.m_dateLastActivity),
|
||||
m_userName(other.m_userName){}
|
||||
|
||||
AuthenticationInfo AuthenticationInfo::fromJson(QJsonObject source) {
|
||||
AuthenticationInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void AuthenticationInfo::setFromJson(QJsonObject source) {
|
||||
m_jellyfinId = Jellyfin::Support::fromJsonValue<qint64>(source["Id"]);
|
||||
m_accessToken = Jellyfin::Support::fromJsonValue<QString>(source["AccessToken"]);
|
||||
m_deviceId = Jellyfin::Support::fromJsonValue<QString>(source["DeviceId"]);
|
||||
m_appName = Jellyfin::Support::fromJsonValue<QString>(source["AppName"]);
|
||||
m_appVersion = Jellyfin::Support::fromJsonValue<QString>(source["AppVersion"]);
|
||||
m_deviceName = Jellyfin::Support::fromJsonValue<QString>(source["DeviceName"]);
|
||||
m_userId = Jellyfin::Support::fromJsonValue<QUuid>(source["UserId"]);
|
||||
m_isActive = Jellyfin::Support::fromJsonValue<bool>(source["IsActive"]);
|
||||
m_dateCreated = Jellyfin::Support::fromJsonValue<QDateTime>(source["DateCreated"]);
|
||||
m_dateRevoked = Jellyfin::Support::fromJsonValue<QDateTime>(source["DateRevoked"]);
|
||||
m_dateLastActivity = Jellyfin::Support::fromJsonValue<QDateTime>(source["DateLastActivity"]);
|
||||
m_userName = Jellyfin::Support::fromJsonValue<QString>(source["UserName"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject AuthenticationInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Id"] = Jellyfin::Support::toJsonValue<qint64>(m_jellyfinId);
|
||||
result["AccessToken"] = Jellyfin::Support::toJsonValue<QString>(m_accessToken);
|
||||
result["DeviceId"] = Jellyfin::Support::toJsonValue<QString>(m_deviceId);
|
||||
result["AppName"] = Jellyfin::Support::toJsonValue<QString>(m_appName);
|
||||
result["AppVersion"] = Jellyfin::Support::toJsonValue<QString>(m_appVersion);
|
||||
result["DeviceName"] = Jellyfin::Support::toJsonValue<QString>(m_deviceName);
|
||||
result["UserId"] = Jellyfin::Support::toJsonValue<QUuid>(m_userId);
|
||||
result["IsActive"] = Jellyfin::Support::toJsonValue<bool>(m_isActive);
|
||||
result["DateCreated"] = Jellyfin::Support::toJsonValue<QDateTime>(m_dateCreated);
|
||||
result["DateRevoked"] = Jellyfin::Support::toJsonValue<QDateTime>(m_dateRevoked);
|
||||
result["DateLastActivity"] = Jellyfin::Support::toJsonValue<QDateTime>(m_dateLastActivity);
|
||||
result["UserName"] = Jellyfin::Support::toJsonValue<QString>(m_userName);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
qint64 AuthenticationInfo::jellyfinId() const { return m_jellyfinId; }
|
||||
|
||||
void AuthenticationInfo::setJellyfinId(qint64 newJellyfinId) {
|
||||
m_jellyfinId = newJellyfinId;
|
||||
}
|
||||
QString AuthenticationInfo::accessToken() const { return m_accessToken; }
|
||||
|
||||
void AuthenticationInfo::setAccessToken(QString newAccessToken) {
|
||||
m_accessToken = newAccessToken;
|
||||
}
|
||||
QString AuthenticationInfo::deviceId() const { return m_deviceId; }
|
||||
|
||||
void AuthenticationInfo::setDeviceId(QString newDeviceId) {
|
||||
m_deviceId = newDeviceId;
|
||||
}
|
||||
QString AuthenticationInfo::appName() const { return m_appName; }
|
||||
|
||||
void AuthenticationInfo::setAppName(QString newAppName) {
|
||||
m_appName = newAppName;
|
||||
}
|
||||
QString AuthenticationInfo::appVersion() const { return m_appVersion; }
|
||||
|
||||
void AuthenticationInfo::setAppVersion(QString newAppVersion) {
|
||||
m_appVersion = newAppVersion;
|
||||
}
|
||||
QString AuthenticationInfo::deviceName() const { return m_deviceName; }
|
||||
|
||||
void AuthenticationInfo::setDeviceName(QString newDeviceName) {
|
||||
m_deviceName = newDeviceName;
|
||||
}
|
||||
QUuid AuthenticationInfo::userId() const { return m_userId; }
|
||||
|
||||
void AuthenticationInfo::setUserId(QUuid newUserId) {
|
||||
m_userId = newUserId;
|
||||
}
|
||||
bool AuthenticationInfo::isActive() const { return m_isActive; }
|
||||
|
||||
void AuthenticationInfo::setIsActive(bool newIsActive) {
|
||||
m_isActive = newIsActive;
|
||||
}
|
||||
QDateTime AuthenticationInfo::dateCreated() const { return m_dateCreated; }
|
||||
|
||||
void AuthenticationInfo::setDateCreated(QDateTime newDateCreated) {
|
||||
m_dateCreated = newDateCreated;
|
||||
}
|
||||
QDateTime AuthenticationInfo::dateRevoked() const { return m_dateRevoked; }
|
||||
|
||||
void AuthenticationInfo::setDateRevoked(QDateTime newDateRevoked) {
|
||||
m_dateRevoked = newDateRevoked;
|
||||
}
|
||||
QDateTime AuthenticationInfo::dateLastActivity() const { return m_dateLastActivity; }
|
||||
|
||||
void AuthenticationInfo::setDateLastActivity(QDateTime newDateLastActivity) {
|
||||
m_dateLastActivity = newDateLastActivity;
|
||||
}
|
||||
QString AuthenticationInfo::userName() const { return m_userName; }
|
||||
|
||||
void AuthenticationInfo::setUserName(QString newUserName) {
|
||||
m_userName = newUserName;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AuthenticationInfo = Jellyfin::DTO::AuthenticationInfo;
|
||||
|
||||
template <>
|
||||
AuthenticationInfo fromJsonValue<AuthenticationInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return AuthenticationInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/authenticationinfoqueryresult.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
AuthenticationInfoQueryResult::AuthenticationInfoQueryResult() {}
|
||||
AuthenticationInfoQueryResult::AuthenticationInfoQueryResult(const AuthenticationInfoQueryResult &other) :
|
||||
m_items(other.m_items),
|
||||
m_totalRecordCount(other.m_totalRecordCount),
|
||||
m_startIndex(other.m_startIndex){}
|
||||
|
||||
AuthenticationInfoQueryResult AuthenticationInfoQueryResult::fromJson(QJsonObject source) {
|
||||
AuthenticationInfoQueryResult instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void AuthenticationInfoQueryResult::setFromJson(QJsonObject source) {
|
||||
m_items = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<AuthenticationInfo>>>(source["Items"]);
|
||||
m_totalRecordCount = Jellyfin::Support::fromJsonValue<qint32>(source["TotalRecordCount"]);
|
||||
m_startIndex = Jellyfin::Support::fromJsonValue<qint32>(source["StartIndex"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject AuthenticationInfoQueryResult::toJson() {
|
||||
QJsonObject result;
|
||||
result["Items"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<AuthenticationInfo>>>(m_items);
|
||||
result["TotalRecordCount"] = Jellyfin::Support::toJsonValue<qint32>(m_totalRecordCount);
|
||||
result["StartIndex"] = Jellyfin::Support::toJsonValue<qint32>(m_startIndex);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QList<QSharedPointer<AuthenticationInfo>> AuthenticationInfoQueryResult::items() const { return m_items; }
|
||||
|
||||
void AuthenticationInfoQueryResult::setItems(QList<QSharedPointer<AuthenticationInfo>> newItems) {
|
||||
m_items = newItems;
|
||||
}
|
||||
qint32 AuthenticationInfoQueryResult::totalRecordCount() const { return m_totalRecordCount; }
|
||||
|
||||
void AuthenticationInfoQueryResult::setTotalRecordCount(qint32 newTotalRecordCount) {
|
||||
m_totalRecordCount = newTotalRecordCount;
|
||||
}
|
||||
qint32 AuthenticationInfoQueryResult::startIndex() const { return m_startIndex; }
|
||||
|
||||
void AuthenticationInfoQueryResult::setStartIndex(qint32 newStartIndex) {
|
||||
m_startIndex = newStartIndex;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AuthenticationInfoQueryResult = Jellyfin::DTO::AuthenticationInfoQueryResult;
|
||||
|
||||
template <>
|
||||
AuthenticationInfoQueryResult fromJsonValue<AuthenticationInfoQueryResult>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return AuthenticationInfoQueryResult::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/authenticationresult.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
AuthenticationResult::AuthenticationResult() {}
|
||||
AuthenticationResult::AuthenticationResult(const AuthenticationResult &other) :
|
||||
m_user(other.m_user),
|
||||
m_sessionInfo(other.m_sessionInfo),
|
||||
m_accessToken(other.m_accessToken),
|
||||
m_serverId(other.m_serverId){}
|
||||
|
||||
AuthenticationResult AuthenticationResult::fromJson(QJsonObject source) {
|
||||
AuthenticationResult instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void AuthenticationResult::setFromJson(QJsonObject source) {
|
||||
m_user = Jellyfin::Support::fromJsonValue<QSharedPointer<UserDto>>(source["User"]);
|
||||
m_sessionInfo = Jellyfin::Support::fromJsonValue<QSharedPointer<SessionInfo>>(source["SessionInfo"]);
|
||||
m_accessToken = Jellyfin::Support::fromJsonValue<QString>(source["AccessToken"]);
|
||||
m_serverId = Jellyfin::Support::fromJsonValue<QString>(source["ServerId"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject AuthenticationResult::toJson() {
|
||||
QJsonObject result;
|
||||
result["User"] = Jellyfin::Support::toJsonValue<QSharedPointer<UserDto>>(m_user);
|
||||
result["SessionInfo"] = Jellyfin::Support::toJsonValue<QSharedPointer<SessionInfo>>(m_sessionInfo);
|
||||
result["AccessToken"] = Jellyfin::Support::toJsonValue<QString>(m_accessToken);
|
||||
result["ServerId"] = Jellyfin::Support::toJsonValue<QString>(m_serverId);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QSharedPointer<UserDto> AuthenticationResult::user() const { return m_user; }
|
||||
|
||||
void AuthenticationResult::setUser(QSharedPointer<UserDto> newUser) {
|
||||
m_user = newUser;
|
||||
}
|
||||
QSharedPointer<SessionInfo> AuthenticationResult::sessionInfo() const { return m_sessionInfo; }
|
||||
|
||||
void AuthenticationResult::setSessionInfo(QSharedPointer<SessionInfo> newSessionInfo) {
|
||||
m_sessionInfo = newSessionInfo;
|
||||
}
|
||||
QString AuthenticationResult::accessToken() const { return m_accessToken; }
|
||||
|
||||
void AuthenticationResult::setAccessToken(QString newAccessToken) {
|
||||
m_accessToken = newAccessToken;
|
||||
}
|
||||
QString AuthenticationResult::serverId() const { return m_serverId; }
|
||||
|
||||
void AuthenticationResult::setServerId(QString newServerId) {
|
||||
m_serverId = newServerId;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using AuthenticationResult = Jellyfin::DTO::AuthenticationResult;
|
||||
|
||||
template <>
|
||||
AuthenticationResult fromJsonValue<AuthenticationResult>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return AuthenticationResult::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,157 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/baseitem.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
BaseItem::BaseItem() {}
|
||||
BaseItem::BaseItem(const BaseItem &other) :
|
||||
m_size(other.m_size),
|
||||
m_container(other.m_container),
|
||||
m_dateLastSaved(other.m_dateLastSaved),
|
||||
m_remoteTrailers(other.m_remoteTrailers),
|
||||
m_isHD(other.m_isHD),
|
||||
m_isShortcut(other.m_isShortcut),
|
||||
m_shortcutPath(other.m_shortcutPath),
|
||||
m_width(other.m_width),
|
||||
m_height(other.m_height),
|
||||
m_extraIds(other.m_extraIds),
|
||||
m_supportsExternalTransfer(other.m_supportsExternalTransfer){}
|
||||
|
||||
BaseItem BaseItem::fromJson(QJsonObject source) {
|
||||
BaseItem instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void BaseItem::setFromJson(QJsonObject source) {
|
||||
m_size = Jellyfin::Support::fromJsonValue<qint64>(source["Size"]);
|
||||
m_container = Jellyfin::Support::fromJsonValue<QString>(source["Container"]);
|
||||
m_dateLastSaved = Jellyfin::Support::fromJsonValue<QDateTime>(source["DateLastSaved"]);
|
||||
m_remoteTrailers = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<MediaUrl>>>(source["RemoteTrailers"]);
|
||||
m_isHD = Jellyfin::Support::fromJsonValue<bool>(source["IsHD"]);
|
||||
m_isShortcut = Jellyfin::Support::fromJsonValue<bool>(source["IsShortcut"]);
|
||||
m_shortcutPath = Jellyfin::Support::fromJsonValue<QString>(source["ShortcutPath"]);
|
||||
m_width = Jellyfin::Support::fromJsonValue<qint32>(source["Width"]);
|
||||
m_height = Jellyfin::Support::fromJsonValue<qint32>(source["Height"]);
|
||||
m_extraIds = Jellyfin::Support::fromJsonValue<QList<QUuid>>(source["ExtraIds"]);
|
||||
m_supportsExternalTransfer = Jellyfin::Support::fromJsonValue<bool>(source["SupportsExternalTransfer"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject BaseItem::toJson() {
|
||||
QJsonObject result;
|
||||
result["Size"] = Jellyfin::Support::toJsonValue<qint64>(m_size);
|
||||
result["Container"] = Jellyfin::Support::toJsonValue<QString>(m_container);
|
||||
result["DateLastSaved"] = Jellyfin::Support::toJsonValue<QDateTime>(m_dateLastSaved);
|
||||
result["RemoteTrailers"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<MediaUrl>>>(m_remoteTrailers);
|
||||
result["IsHD"] = Jellyfin::Support::toJsonValue<bool>(m_isHD);
|
||||
result["IsShortcut"] = Jellyfin::Support::toJsonValue<bool>(m_isShortcut);
|
||||
result["ShortcutPath"] = Jellyfin::Support::toJsonValue<QString>(m_shortcutPath);
|
||||
result["Width"] = Jellyfin::Support::toJsonValue<qint32>(m_width);
|
||||
result["Height"] = Jellyfin::Support::toJsonValue<qint32>(m_height);
|
||||
result["ExtraIds"] = Jellyfin::Support::toJsonValue<QList<QUuid>>(m_extraIds);
|
||||
result["SupportsExternalTransfer"] = Jellyfin::Support::toJsonValue<bool>(m_supportsExternalTransfer);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
qint64 BaseItem::size() const { return m_size; }
|
||||
|
||||
void BaseItem::setSize(qint64 newSize) {
|
||||
m_size = newSize;
|
||||
}
|
||||
QString BaseItem::container() const { return m_container; }
|
||||
|
||||
void BaseItem::setContainer(QString newContainer) {
|
||||
m_container = newContainer;
|
||||
}
|
||||
QDateTime BaseItem::dateLastSaved() const { return m_dateLastSaved; }
|
||||
|
||||
void BaseItem::setDateLastSaved(QDateTime newDateLastSaved) {
|
||||
m_dateLastSaved = newDateLastSaved;
|
||||
}
|
||||
QList<QSharedPointer<MediaUrl>> BaseItem::remoteTrailers() const { return m_remoteTrailers; }
|
||||
|
||||
void BaseItem::setRemoteTrailers(QList<QSharedPointer<MediaUrl>> newRemoteTrailers) {
|
||||
m_remoteTrailers = newRemoteTrailers;
|
||||
}
|
||||
bool BaseItem::isHD() const { return m_isHD; }
|
||||
|
||||
void BaseItem::setIsHD(bool newIsHD) {
|
||||
m_isHD = newIsHD;
|
||||
}
|
||||
bool BaseItem::isShortcut() const { return m_isShortcut; }
|
||||
|
||||
void BaseItem::setIsShortcut(bool newIsShortcut) {
|
||||
m_isShortcut = newIsShortcut;
|
||||
}
|
||||
QString BaseItem::shortcutPath() const { return m_shortcutPath; }
|
||||
|
||||
void BaseItem::setShortcutPath(QString newShortcutPath) {
|
||||
m_shortcutPath = newShortcutPath;
|
||||
}
|
||||
qint32 BaseItem::width() const { return m_width; }
|
||||
|
||||
void BaseItem::setWidth(qint32 newWidth) {
|
||||
m_width = newWidth;
|
||||
}
|
||||
qint32 BaseItem::height() const { return m_height; }
|
||||
|
||||
void BaseItem::setHeight(qint32 newHeight) {
|
||||
m_height = newHeight;
|
||||
}
|
||||
QList<QUuid> BaseItem::extraIds() const { return m_extraIds; }
|
||||
|
||||
void BaseItem::setExtraIds(QList<QUuid> newExtraIds) {
|
||||
m_extraIds = newExtraIds;
|
||||
}
|
||||
bool BaseItem::supportsExternalTransfer() const { return m_supportsExternalTransfer; }
|
||||
|
||||
void BaseItem::setSupportsExternalTransfer(bool newSupportsExternalTransfer) {
|
||||
m_supportsExternalTransfer = newSupportsExternalTransfer;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BaseItem = Jellyfin::DTO::BaseItem;
|
||||
|
||||
template <>
|
||||
BaseItem fromJsonValue<BaseItem>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return BaseItem::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/baseitemdtoqueryresult.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
BaseItemDtoQueryResult::BaseItemDtoQueryResult() {}
|
||||
BaseItemDtoQueryResult::BaseItemDtoQueryResult(const BaseItemDtoQueryResult &other) :
|
||||
m_items(other.m_items),
|
||||
m_totalRecordCount(other.m_totalRecordCount),
|
||||
m_startIndex(other.m_startIndex){}
|
||||
|
||||
BaseItemDtoQueryResult BaseItemDtoQueryResult::fromJson(QJsonObject source) {
|
||||
BaseItemDtoQueryResult instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void BaseItemDtoQueryResult::setFromJson(QJsonObject source) {
|
||||
m_items = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<BaseItemDto>>>(source["Items"]);
|
||||
m_totalRecordCount = Jellyfin::Support::fromJsonValue<qint32>(source["TotalRecordCount"]);
|
||||
m_startIndex = Jellyfin::Support::fromJsonValue<qint32>(source["StartIndex"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject BaseItemDtoQueryResult::toJson() {
|
||||
QJsonObject result;
|
||||
result["Items"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<BaseItemDto>>>(m_items);
|
||||
result["TotalRecordCount"] = Jellyfin::Support::toJsonValue<qint32>(m_totalRecordCount);
|
||||
result["StartIndex"] = Jellyfin::Support::toJsonValue<qint32>(m_startIndex);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QList<QSharedPointer<BaseItemDto>> BaseItemDtoQueryResult::items() const { return m_items; }
|
||||
|
||||
void BaseItemDtoQueryResult::setItems(QList<QSharedPointer<BaseItemDto>> newItems) {
|
||||
m_items = newItems;
|
||||
}
|
||||
qint32 BaseItemDtoQueryResult::totalRecordCount() const { return m_totalRecordCount; }
|
||||
|
||||
void BaseItemDtoQueryResult::setTotalRecordCount(qint32 newTotalRecordCount) {
|
||||
m_totalRecordCount = newTotalRecordCount;
|
||||
}
|
||||
qint32 BaseItemDtoQueryResult::startIndex() const { return m_startIndex; }
|
||||
|
||||
void BaseItemDtoQueryResult::setStartIndex(qint32 newStartIndex) {
|
||||
m_startIndex = newStartIndex;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BaseItemDtoQueryResult = Jellyfin::DTO::BaseItemDtoQueryResult;
|
||||
|
||||
template <>
|
||||
BaseItemDtoQueryResult fromJsonValue<BaseItemDtoQueryResult>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return BaseItemDtoQueryResult::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,117 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/baseitemperson.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
BaseItemPerson::BaseItemPerson() {}
|
||||
BaseItemPerson::BaseItemPerson(const BaseItemPerson &other) :
|
||||
m_name(other.m_name),
|
||||
m_jellyfinId(other.m_jellyfinId),
|
||||
m_role(other.m_role),
|
||||
m_type(other.m_type),
|
||||
m_primaryImageTag(other.m_primaryImageTag),
|
||||
m_imageBlurHashes(other.m_imageBlurHashes){}
|
||||
|
||||
BaseItemPerson BaseItemPerson::fromJson(QJsonObject source) {
|
||||
BaseItemPerson instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void BaseItemPerson::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_jellyfinId = Jellyfin::Support::fromJsonValue<QString>(source["Id"]);
|
||||
m_role = Jellyfin::Support::fromJsonValue<QString>(source["Role"]);
|
||||
m_type = Jellyfin::Support::fromJsonValue<QString>(source["Type"]);
|
||||
m_primaryImageTag = Jellyfin::Support::fromJsonValue<QString>(source["PrimaryImageTag"]);
|
||||
m_imageBlurHashes = Jellyfin::Support::fromJsonValue<QJsonObject>(source["ImageBlurHashes"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject BaseItemPerson::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Id"] = Jellyfin::Support::toJsonValue<QString>(m_jellyfinId);
|
||||
result["Role"] = Jellyfin::Support::toJsonValue<QString>(m_role);
|
||||
result["Type"] = Jellyfin::Support::toJsonValue<QString>(m_type);
|
||||
result["PrimaryImageTag"] = Jellyfin::Support::toJsonValue<QString>(m_primaryImageTag);
|
||||
result["ImageBlurHashes"] = Jellyfin::Support::toJsonValue<QJsonObject>(m_imageBlurHashes);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString BaseItemPerson::name() const { return m_name; }
|
||||
|
||||
void BaseItemPerson::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString BaseItemPerson::jellyfinId() const { return m_jellyfinId; }
|
||||
|
||||
void BaseItemPerson::setJellyfinId(QString newJellyfinId) {
|
||||
m_jellyfinId = newJellyfinId;
|
||||
}
|
||||
QString BaseItemPerson::role() const { return m_role; }
|
||||
|
||||
void BaseItemPerson::setRole(QString newRole) {
|
||||
m_role = newRole;
|
||||
}
|
||||
QString BaseItemPerson::type() const { return m_type; }
|
||||
|
||||
void BaseItemPerson::setType(QString newType) {
|
||||
m_type = newType;
|
||||
}
|
||||
QString BaseItemPerson::primaryImageTag() const { return m_primaryImageTag; }
|
||||
|
||||
void BaseItemPerson::setPrimaryImageTag(QString newPrimaryImageTag) {
|
||||
m_primaryImageTag = newPrimaryImageTag;
|
||||
}
|
||||
QJsonObject BaseItemPerson::imageBlurHashes() const { return m_imageBlurHashes; }
|
||||
|
||||
void BaseItemPerson::setImageBlurHashes(QJsonObject newImageBlurHashes) {
|
||||
m_imageBlurHashes = newImageBlurHashes;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BaseItemPerson = Jellyfin::DTO::BaseItemPerson;
|
||||
|
||||
template <>
|
||||
BaseItemPerson fromJsonValue<BaseItemPerson>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return BaseItemPerson::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,157 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/bookinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
BookInfo::BookInfo() {}
|
||||
BookInfo::BookInfo(const BookInfo &other) :
|
||||
m_name(other.m_name),
|
||||
m_path(other.m_path),
|
||||
m_metadataLanguage(other.m_metadataLanguage),
|
||||
m_metadataCountryCode(other.m_metadataCountryCode),
|
||||
m_providerIds(other.m_providerIds),
|
||||
m_year(other.m_year),
|
||||
m_indexNumber(other.m_indexNumber),
|
||||
m_parentIndexNumber(other.m_parentIndexNumber),
|
||||
m_premiereDate(other.m_premiereDate),
|
||||
m_isAutomated(other.m_isAutomated),
|
||||
m_seriesName(other.m_seriesName){}
|
||||
|
||||
BookInfo BookInfo::fromJson(QJsonObject source) {
|
||||
BookInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void BookInfo::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_path = Jellyfin::Support::fromJsonValue<QString>(source["Path"]);
|
||||
m_metadataLanguage = Jellyfin::Support::fromJsonValue<QString>(source["MetadataLanguage"]);
|
||||
m_metadataCountryCode = Jellyfin::Support::fromJsonValue<QString>(source["MetadataCountryCode"]);
|
||||
m_providerIds = Jellyfin::Support::fromJsonValue<QJsonObject>(source["ProviderIds"]);
|
||||
m_year = Jellyfin::Support::fromJsonValue<qint32>(source["Year"]);
|
||||
m_indexNumber = Jellyfin::Support::fromJsonValue<qint32>(source["IndexNumber"]);
|
||||
m_parentIndexNumber = Jellyfin::Support::fromJsonValue<qint32>(source["ParentIndexNumber"]);
|
||||
m_premiereDate = Jellyfin::Support::fromJsonValue<QDateTime>(source["PremiereDate"]);
|
||||
m_isAutomated = Jellyfin::Support::fromJsonValue<bool>(source["IsAutomated"]);
|
||||
m_seriesName = Jellyfin::Support::fromJsonValue<QString>(source["SeriesName"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject BookInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Path"] = Jellyfin::Support::toJsonValue<QString>(m_path);
|
||||
result["MetadataLanguage"] = Jellyfin::Support::toJsonValue<QString>(m_metadataLanguage);
|
||||
result["MetadataCountryCode"] = Jellyfin::Support::toJsonValue<QString>(m_metadataCountryCode);
|
||||
result["ProviderIds"] = Jellyfin::Support::toJsonValue<QJsonObject>(m_providerIds);
|
||||
result["Year"] = Jellyfin::Support::toJsonValue<qint32>(m_year);
|
||||
result["IndexNumber"] = Jellyfin::Support::toJsonValue<qint32>(m_indexNumber);
|
||||
result["ParentIndexNumber"] = Jellyfin::Support::toJsonValue<qint32>(m_parentIndexNumber);
|
||||
result["PremiereDate"] = Jellyfin::Support::toJsonValue<QDateTime>(m_premiereDate);
|
||||
result["IsAutomated"] = Jellyfin::Support::toJsonValue<bool>(m_isAutomated);
|
||||
result["SeriesName"] = Jellyfin::Support::toJsonValue<QString>(m_seriesName);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString BookInfo::name() const { return m_name; }
|
||||
|
||||
void BookInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString BookInfo::path() const { return m_path; }
|
||||
|
||||
void BookInfo::setPath(QString newPath) {
|
||||
m_path = newPath;
|
||||
}
|
||||
QString BookInfo::metadataLanguage() const { return m_metadataLanguage; }
|
||||
|
||||
void BookInfo::setMetadataLanguage(QString newMetadataLanguage) {
|
||||
m_metadataLanguage = newMetadataLanguage;
|
||||
}
|
||||
QString BookInfo::metadataCountryCode() const { return m_metadataCountryCode; }
|
||||
|
||||
void BookInfo::setMetadataCountryCode(QString newMetadataCountryCode) {
|
||||
m_metadataCountryCode = newMetadataCountryCode;
|
||||
}
|
||||
QJsonObject BookInfo::providerIds() const { return m_providerIds; }
|
||||
|
||||
void BookInfo::setProviderIds(QJsonObject newProviderIds) {
|
||||
m_providerIds = newProviderIds;
|
||||
}
|
||||
qint32 BookInfo::year() const { return m_year; }
|
||||
|
||||
void BookInfo::setYear(qint32 newYear) {
|
||||
m_year = newYear;
|
||||
}
|
||||
qint32 BookInfo::indexNumber() const { return m_indexNumber; }
|
||||
|
||||
void BookInfo::setIndexNumber(qint32 newIndexNumber) {
|
||||
m_indexNumber = newIndexNumber;
|
||||
}
|
||||
qint32 BookInfo::parentIndexNumber() const { return m_parentIndexNumber; }
|
||||
|
||||
void BookInfo::setParentIndexNumber(qint32 newParentIndexNumber) {
|
||||
m_parentIndexNumber = newParentIndexNumber;
|
||||
}
|
||||
QDateTime BookInfo::premiereDate() const { return m_premiereDate; }
|
||||
|
||||
void BookInfo::setPremiereDate(QDateTime newPremiereDate) {
|
||||
m_premiereDate = newPremiereDate;
|
||||
}
|
||||
bool BookInfo::isAutomated() const { return m_isAutomated; }
|
||||
|
||||
void BookInfo::setIsAutomated(bool newIsAutomated) {
|
||||
m_isAutomated = newIsAutomated;
|
||||
}
|
||||
QString BookInfo::seriesName() const { return m_seriesName; }
|
||||
|
||||
void BookInfo::setSeriesName(QString newSeriesName) {
|
||||
m_seriesName = newSeriesName;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BookInfo = Jellyfin::DTO::BookInfo;
|
||||
|
||||
template <>
|
||||
BookInfo fromJsonValue<BookInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return BookInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/bookinforemotesearchquery.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
BookInfoRemoteSearchQuery::BookInfoRemoteSearchQuery() {}
|
||||
BookInfoRemoteSearchQuery::BookInfoRemoteSearchQuery(const BookInfoRemoteSearchQuery &other) :
|
||||
m_searchInfo(other.m_searchInfo),
|
||||
m_itemId(other.m_itemId),
|
||||
m_searchProviderName(other.m_searchProviderName),
|
||||
m_includeDisabledProviders(other.m_includeDisabledProviders){}
|
||||
|
||||
BookInfoRemoteSearchQuery BookInfoRemoteSearchQuery::fromJson(QJsonObject source) {
|
||||
BookInfoRemoteSearchQuery instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void BookInfoRemoteSearchQuery::setFromJson(QJsonObject source) {
|
||||
m_searchInfo = Jellyfin::Support::fromJsonValue<QSharedPointer<BookInfo>>(source["SearchInfo"]);
|
||||
m_itemId = Jellyfin::Support::fromJsonValue<QUuid>(source["ItemId"]);
|
||||
m_searchProviderName = Jellyfin::Support::fromJsonValue<QString>(source["SearchProviderName"]);
|
||||
m_includeDisabledProviders = Jellyfin::Support::fromJsonValue<bool>(source["IncludeDisabledProviders"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject BookInfoRemoteSearchQuery::toJson() {
|
||||
QJsonObject result;
|
||||
result["SearchInfo"] = Jellyfin::Support::toJsonValue<QSharedPointer<BookInfo>>(m_searchInfo);
|
||||
result["ItemId"] = Jellyfin::Support::toJsonValue<QUuid>(m_itemId);
|
||||
result["SearchProviderName"] = Jellyfin::Support::toJsonValue<QString>(m_searchProviderName);
|
||||
result["IncludeDisabledProviders"] = Jellyfin::Support::toJsonValue<bool>(m_includeDisabledProviders);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QSharedPointer<BookInfo> BookInfoRemoteSearchQuery::searchInfo() const { return m_searchInfo; }
|
||||
|
||||
void BookInfoRemoteSearchQuery::setSearchInfo(QSharedPointer<BookInfo> newSearchInfo) {
|
||||
m_searchInfo = newSearchInfo;
|
||||
}
|
||||
QUuid BookInfoRemoteSearchQuery::itemId() const { return m_itemId; }
|
||||
|
||||
void BookInfoRemoteSearchQuery::setItemId(QUuid newItemId) {
|
||||
m_itemId = newItemId;
|
||||
}
|
||||
QString BookInfoRemoteSearchQuery::searchProviderName() const { return m_searchProviderName; }
|
||||
|
||||
void BookInfoRemoteSearchQuery::setSearchProviderName(QString newSearchProviderName) {
|
||||
m_searchProviderName = newSearchProviderName;
|
||||
}
|
||||
bool BookInfoRemoteSearchQuery::includeDisabledProviders() const { return m_includeDisabledProviders; }
|
||||
|
||||
void BookInfoRemoteSearchQuery::setIncludeDisabledProviders(bool newIncludeDisabledProviders) {
|
||||
m_includeDisabledProviders = newIncludeDisabledProviders;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BookInfoRemoteSearchQuery = Jellyfin::DTO::BookInfoRemoteSearchQuery;
|
||||
|
||||
template <>
|
||||
BookInfoRemoteSearchQuery fromJsonValue<BookInfoRemoteSearchQuery>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return BookInfoRemoteSearchQuery::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,149 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/boxsetinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
BoxSetInfo::BoxSetInfo() {}
|
||||
BoxSetInfo::BoxSetInfo(const BoxSetInfo &other) :
|
||||
m_name(other.m_name),
|
||||
m_path(other.m_path),
|
||||
m_metadataLanguage(other.m_metadataLanguage),
|
||||
m_metadataCountryCode(other.m_metadataCountryCode),
|
||||
m_providerIds(other.m_providerIds),
|
||||
m_year(other.m_year),
|
||||
m_indexNumber(other.m_indexNumber),
|
||||
m_parentIndexNumber(other.m_parentIndexNumber),
|
||||
m_premiereDate(other.m_premiereDate),
|
||||
m_isAutomated(other.m_isAutomated){}
|
||||
|
||||
BoxSetInfo BoxSetInfo::fromJson(QJsonObject source) {
|
||||
BoxSetInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void BoxSetInfo::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_path = Jellyfin::Support::fromJsonValue<QString>(source["Path"]);
|
||||
m_metadataLanguage = Jellyfin::Support::fromJsonValue<QString>(source["MetadataLanguage"]);
|
||||
m_metadataCountryCode = Jellyfin::Support::fromJsonValue<QString>(source["MetadataCountryCode"]);
|
||||
m_providerIds = Jellyfin::Support::fromJsonValue<QJsonObject>(source["ProviderIds"]);
|
||||
m_year = Jellyfin::Support::fromJsonValue<qint32>(source["Year"]);
|
||||
m_indexNumber = Jellyfin::Support::fromJsonValue<qint32>(source["IndexNumber"]);
|
||||
m_parentIndexNumber = Jellyfin::Support::fromJsonValue<qint32>(source["ParentIndexNumber"]);
|
||||
m_premiereDate = Jellyfin::Support::fromJsonValue<QDateTime>(source["PremiereDate"]);
|
||||
m_isAutomated = Jellyfin::Support::fromJsonValue<bool>(source["IsAutomated"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject BoxSetInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Path"] = Jellyfin::Support::toJsonValue<QString>(m_path);
|
||||
result["MetadataLanguage"] = Jellyfin::Support::toJsonValue<QString>(m_metadataLanguage);
|
||||
result["MetadataCountryCode"] = Jellyfin::Support::toJsonValue<QString>(m_metadataCountryCode);
|
||||
result["ProviderIds"] = Jellyfin::Support::toJsonValue<QJsonObject>(m_providerIds);
|
||||
result["Year"] = Jellyfin::Support::toJsonValue<qint32>(m_year);
|
||||
result["IndexNumber"] = Jellyfin::Support::toJsonValue<qint32>(m_indexNumber);
|
||||
result["ParentIndexNumber"] = Jellyfin::Support::toJsonValue<qint32>(m_parentIndexNumber);
|
||||
result["PremiereDate"] = Jellyfin::Support::toJsonValue<QDateTime>(m_premiereDate);
|
||||
result["IsAutomated"] = Jellyfin::Support::toJsonValue<bool>(m_isAutomated);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString BoxSetInfo::name() const { return m_name; }
|
||||
|
||||
void BoxSetInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString BoxSetInfo::path() const { return m_path; }
|
||||
|
||||
void BoxSetInfo::setPath(QString newPath) {
|
||||
m_path = newPath;
|
||||
}
|
||||
QString BoxSetInfo::metadataLanguage() const { return m_metadataLanguage; }
|
||||
|
||||
void BoxSetInfo::setMetadataLanguage(QString newMetadataLanguage) {
|
||||
m_metadataLanguage = newMetadataLanguage;
|
||||
}
|
||||
QString BoxSetInfo::metadataCountryCode() const { return m_metadataCountryCode; }
|
||||
|
||||
void BoxSetInfo::setMetadataCountryCode(QString newMetadataCountryCode) {
|
||||
m_metadataCountryCode = newMetadataCountryCode;
|
||||
}
|
||||
QJsonObject BoxSetInfo::providerIds() const { return m_providerIds; }
|
||||
|
||||
void BoxSetInfo::setProviderIds(QJsonObject newProviderIds) {
|
||||
m_providerIds = newProviderIds;
|
||||
}
|
||||
qint32 BoxSetInfo::year() const { return m_year; }
|
||||
|
||||
void BoxSetInfo::setYear(qint32 newYear) {
|
||||
m_year = newYear;
|
||||
}
|
||||
qint32 BoxSetInfo::indexNumber() const { return m_indexNumber; }
|
||||
|
||||
void BoxSetInfo::setIndexNumber(qint32 newIndexNumber) {
|
||||
m_indexNumber = newIndexNumber;
|
||||
}
|
||||
qint32 BoxSetInfo::parentIndexNumber() const { return m_parentIndexNumber; }
|
||||
|
||||
void BoxSetInfo::setParentIndexNumber(qint32 newParentIndexNumber) {
|
||||
m_parentIndexNumber = newParentIndexNumber;
|
||||
}
|
||||
QDateTime BoxSetInfo::premiereDate() const { return m_premiereDate; }
|
||||
|
||||
void BoxSetInfo::setPremiereDate(QDateTime newPremiereDate) {
|
||||
m_premiereDate = newPremiereDate;
|
||||
}
|
||||
bool BoxSetInfo::isAutomated() const { return m_isAutomated; }
|
||||
|
||||
void BoxSetInfo::setIsAutomated(bool newIsAutomated) {
|
||||
m_isAutomated = newIsAutomated;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BoxSetInfo = Jellyfin::DTO::BoxSetInfo;
|
||||
|
||||
template <>
|
||||
BoxSetInfo fromJsonValue<BoxSetInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return BoxSetInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/boxsetinforemotesearchquery.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
BoxSetInfoRemoteSearchQuery::BoxSetInfoRemoteSearchQuery() {}
|
||||
BoxSetInfoRemoteSearchQuery::BoxSetInfoRemoteSearchQuery(const BoxSetInfoRemoteSearchQuery &other) :
|
||||
m_searchInfo(other.m_searchInfo),
|
||||
m_itemId(other.m_itemId),
|
||||
m_searchProviderName(other.m_searchProviderName),
|
||||
m_includeDisabledProviders(other.m_includeDisabledProviders){}
|
||||
|
||||
BoxSetInfoRemoteSearchQuery BoxSetInfoRemoteSearchQuery::fromJson(QJsonObject source) {
|
||||
BoxSetInfoRemoteSearchQuery instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void BoxSetInfoRemoteSearchQuery::setFromJson(QJsonObject source) {
|
||||
m_searchInfo = Jellyfin::Support::fromJsonValue<QSharedPointer<BoxSetInfo>>(source["SearchInfo"]);
|
||||
m_itemId = Jellyfin::Support::fromJsonValue<QUuid>(source["ItemId"]);
|
||||
m_searchProviderName = Jellyfin::Support::fromJsonValue<QString>(source["SearchProviderName"]);
|
||||
m_includeDisabledProviders = Jellyfin::Support::fromJsonValue<bool>(source["IncludeDisabledProviders"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject BoxSetInfoRemoteSearchQuery::toJson() {
|
||||
QJsonObject result;
|
||||
result["SearchInfo"] = Jellyfin::Support::toJsonValue<QSharedPointer<BoxSetInfo>>(m_searchInfo);
|
||||
result["ItemId"] = Jellyfin::Support::toJsonValue<QUuid>(m_itemId);
|
||||
result["SearchProviderName"] = Jellyfin::Support::toJsonValue<QString>(m_searchProviderName);
|
||||
result["IncludeDisabledProviders"] = Jellyfin::Support::toJsonValue<bool>(m_includeDisabledProviders);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QSharedPointer<BoxSetInfo> BoxSetInfoRemoteSearchQuery::searchInfo() const { return m_searchInfo; }
|
||||
|
||||
void BoxSetInfoRemoteSearchQuery::setSearchInfo(QSharedPointer<BoxSetInfo> newSearchInfo) {
|
||||
m_searchInfo = newSearchInfo;
|
||||
}
|
||||
QUuid BoxSetInfoRemoteSearchQuery::itemId() const { return m_itemId; }
|
||||
|
||||
void BoxSetInfoRemoteSearchQuery::setItemId(QUuid newItemId) {
|
||||
m_itemId = newItemId;
|
||||
}
|
||||
QString BoxSetInfoRemoteSearchQuery::searchProviderName() const { return m_searchProviderName; }
|
||||
|
||||
void BoxSetInfoRemoteSearchQuery::setSearchProviderName(QString newSearchProviderName) {
|
||||
m_searchProviderName = newSearchProviderName;
|
||||
}
|
||||
bool BoxSetInfoRemoteSearchQuery::includeDisabledProviders() const { return m_includeDisabledProviders; }
|
||||
|
||||
void BoxSetInfoRemoteSearchQuery::setIncludeDisabledProviders(bool newIncludeDisabledProviders) {
|
||||
m_includeDisabledProviders = newIncludeDisabledProviders;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BoxSetInfoRemoteSearchQuery = Jellyfin::DTO::BoxSetInfoRemoteSearchQuery;
|
||||
|
||||
template <>
|
||||
BoxSetInfoRemoteSearchQuery fromJsonValue<BoxSetInfoRemoteSearchQuery>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return BoxSetInfoRemoteSearchQuery::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,85 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/brandingoptions.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
BrandingOptions::BrandingOptions() {}
|
||||
BrandingOptions::BrandingOptions(const BrandingOptions &other) :
|
||||
m_loginDisclaimer(other.m_loginDisclaimer),
|
||||
m_customCss(other.m_customCss){}
|
||||
|
||||
BrandingOptions BrandingOptions::fromJson(QJsonObject source) {
|
||||
BrandingOptions instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void BrandingOptions::setFromJson(QJsonObject source) {
|
||||
m_loginDisclaimer = Jellyfin::Support::fromJsonValue<QString>(source["LoginDisclaimer"]);
|
||||
m_customCss = Jellyfin::Support::fromJsonValue<QString>(source["CustomCss"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject BrandingOptions::toJson() {
|
||||
QJsonObject result;
|
||||
result["LoginDisclaimer"] = Jellyfin::Support::toJsonValue<QString>(m_loginDisclaimer);
|
||||
result["CustomCss"] = Jellyfin::Support::toJsonValue<QString>(m_customCss);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString BrandingOptions::loginDisclaimer() const { return m_loginDisclaimer; }
|
||||
|
||||
void BrandingOptions::setLoginDisclaimer(QString newLoginDisclaimer) {
|
||||
m_loginDisclaimer = newLoginDisclaimer;
|
||||
}
|
||||
QString BrandingOptions::customCss() const { return m_customCss; }
|
||||
|
||||
void BrandingOptions::setCustomCss(QString newCustomCss) {
|
||||
m_customCss = newCustomCss;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BrandingOptions = Jellyfin::DTO::BrandingOptions;
|
||||
|
||||
template <>
|
||||
BrandingOptions fromJsonValue<BrandingOptions>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return BrandingOptions::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/bufferrequestdto.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
BufferRequestDto::BufferRequestDto() {}
|
||||
BufferRequestDto::BufferRequestDto(const BufferRequestDto &other) :
|
||||
m_when(other.m_when),
|
||||
m_positionTicks(other.m_positionTicks),
|
||||
m_isPlaying(other.m_isPlaying),
|
||||
m_playlistItemId(other.m_playlistItemId){}
|
||||
|
||||
BufferRequestDto BufferRequestDto::fromJson(QJsonObject source) {
|
||||
BufferRequestDto instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void BufferRequestDto::setFromJson(QJsonObject source) {
|
||||
m_when = Jellyfin::Support::fromJsonValue<QDateTime>(source["When"]);
|
||||
m_positionTicks = Jellyfin::Support::fromJsonValue<qint64>(source["PositionTicks"]);
|
||||
m_isPlaying = Jellyfin::Support::fromJsonValue<bool>(source["IsPlaying"]);
|
||||
m_playlistItemId = Jellyfin::Support::fromJsonValue<QUuid>(source["PlaylistItemId"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject BufferRequestDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["When"] = Jellyfin::Support::toJsonValue<QDateTime>(m_when);
|
||||
result["PositionTicks"] = Jellyfin::Support::toJsonValue<qint64>(m_positionTicks);
|
||||
result["IsPlaying"] = Jellyfin::Support::toJsonValue<bool>(m_isPlaying);
|
||||
result["PlaylistItemId"] = Jellyfin::Support::toJsonValue<QUuid>(m_playlistItemId);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QDateTime BufferRequestDto::when() const { return m_when; }
|
||||
|
||||
void BufferRequestDto::setWhen(QDateTime newWhen) {
|
||||
m_when = newWhen;
|
||||
}
|
||||
qint64 BufferRequestDto::positionTicks() const { return m_positionTicks; }
|
||||
|
||||
void BufferRequestDto::setPositionTicks(qint64 newPositionTicks) {
|
||||
m_positionTicks = newPositionTicks;
|
||||
}
|
||||
bool BufferRequestDto::isPlaying() const { return m_isPlaying; }
|
||||
|
||||
void BufferRequestDto::setIsPlaying(bool newIsPlaying) {
|
||||
m_isPlaying = newIsPlaying;
|
||||
}
|
||||
QUuid BufferRequestDto::playlistItemId() const { return m_playlistItemId; }
|
||||
|
||||
void BufferRequestDto::setPlaylistItemId(QUuid newPlaylistItemId) {
|
||||
m_playlistItemId = newPlaylistItemId;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using BufferRequestDto = Jellyfin::DTO::BufferRequestDto;
|
||||
|
||||
template <>
|
||||
BufferRequestDto fromJsonValue<BufferRequestDto>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return BufferRequestDto::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,165 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/channelfeatures.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ChannelFeatures::ChannelFeatures() {}
|
||||
ChannelFeatures::ChannelFeatures(const ChannelFeatures &other) :
|
||||
m_name(other.m_name),
|
||||
m_jellyfinId(other.m_jellyfinId),
|
||||
m_canSearch(other.m_canSearch),
|
||||
m_mediaTypes(other.m_mediaTypes),
|
||||
m_contentTypes(other.m_contentTypes),
|
||||
m_maxPageSize(other.m_maxPageSize),
|
||||
m_autoRefreshLevels(other.m_autoRefreshLevels),
|
||||
m_defaultSortFields(other.m_defaultSortFields),
|
||||
m_supportsSortOrderToggle(other.m_supportsSortOrderToggle),
|
||||
m_supportsLatestMedia(other.m_supportsLatestMedia),
|
||||
m_canFilter(other.m_canFilter),
|
||||
m_supportsContentDownloading(other.m_supportsContentDownloading){}
|
||||
|
||||
ChannelFeatures ChannelFeatures::fromJson(QJsonObject source) {
|
||||
ChannelFeatures instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ChannelFeatures::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_jellyfinId = Jellyfin::Support::fromJsonValue<QString>(source["Id"]);
|
||||
m_canSearch = Jellyfin::Support::fromJsonValue<bool>(source["CanSearch"]);
|
||||
m_mediaTypes = Jellyfin::Support::fromJsonValue<QList<ChannelMediaType>>(source["MediaTypes"]);
|
||||
m_contentTypes = Jellyfin::Support::fromJsonValue<QList<ChannelMediaContentType>>(source["ContentTypes"]);
|
||||
m_maxPageSize = Jellyfin::Support::fromJsonValue<qint32>(source["MaxPageSize"]);
|
||||
m_autoRefreshLevels = Jellyfin::Support::fromJsonValue<qint32>(source["AutoRefreshLevels"]);
|
||||
m_defaultSortFields = Jellyfin::Support::fromJsonValue<QList<ChannelItemSortField>>(source["DefaultSortFields"]);
|
||||
m_supportsSortOrderToggle = Jellyfin::Support::fromJsonValue<bool>(source["SupportsSortOrderToggle"]);
|
||||
m_supportsLatestMedia = Jellyfin::Support::fromJsonValue<bool>(source["SupportsLatestMedia"]);
|
||||
m_canFilter = Jellyfin::Support::fromJsonValue<bool>(source["CanFilter"]);
|
||||
m_supportsContentDownloading = Jellyfin::Support::fromJsonValue<bool>(source["SupportsContentDownloading"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ChannelFeatures::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Id"] = Jellyfin::Support::toJsonValue<QString>(m_jellyfinId);
|
||||
result["CanSearch"] = Jellyfin::Support::toJsonValue<bool>(m_canSearch);
|
||||
result["MediaTypes"] = Jellyfin::Support::toJsonValue<QList<ChannelMediaType>>(m_mediaTypes);
|
||||
result["ContentTypes"] = Jellyfin::Support::toJsonValue<QList<ChannelMediaContentType>>(m_contentTypes);
|
||||
result["MaxPageSize"] = Jellyfin::Support::toJsonValue<qint32>(m_maxPageSize);
|
||||
result["AutoRefreshLevels"] = Jellyfin::Support::toJsonValue<qint32>(m_autoRefreshLevels);
|
||||
result["DefaultSortFields"] = Jellyfin::Support::toJsonValue<QList<ChannelItemSortField>>(m_defaultSortFields);
|
||||
result["SupportsSortOrderToggle"] = Jellyfin::Support::toJsonValue<bool>(m_supportsSortOrderToggle);
|
||||
result["SupportsLatestMedia"] = Jellyfin::Support::toJsonValue<bool>(m_supportsLatestMedia);
|
||||
result["CanFilter"] = Jellyfin::Support::toJsonValue<bool>(m_canFilter);
|
||||
result["SupportsContentDownloading"] = Jellyfin::Support::toJsonValue<bool>(m_supportsContentDownloading);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString ChannelFeatures::name() const { return m_name; }
|
||||
|
||||
void ChannelFeatures::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString ChannelFeatures::jellyfinId() const { return m_jellyfinId; }
|
||||
|
||||
void ChannelFeatures::setJellyfinId(QString newJellyfinId) {
|
||||
m_jellyfinId = newJellyfinId;
|
||||
}
|
||||
bool ChannelFeatures::canSearch() const { return m_canSearch; }
|
||||
|
||||
void ChannelFeatures::setCanSearch(bool newCanSearch) {
|
||||
m_canSearch = newCanSearch;
|
||||
}
|
||||
QList<ChannelMediaType> ChannelFeatures::mediaTypes() const { return m_mediaTypes; }
|
||||
|
||||
void ChannelFeatures::setMediaTypes(QList<ChannelMediaType> newMediaTypes) {
|
||||
m_mediaTypes = newMediaTypes;
|
||||
}
|
||||
QList<ChannelMediaContentType> ChannelFeatures::contentTypes() const { return m_contentTypes; }
|
||||
|
||||
void ChannelFeatures::setContentTypes(QList<ChannelMediaContentType> newContentTypes) {
|
||||
m_contentTypes = newContentTypes;
|
||||
}
|
||||
qint32 ChannelFeatures::maxPageSize() const { return m_maxPageSize; }
|
||||
|
||||
void ChannelFeatures::setMaxPageSize(qint32 newMaxPageSize) {
|
||||
m_maxPageSize = newMaxPageSize;
|
||||
}
|
||||
qint32 ChannelFeatures::autoRefreshLevels() const { return m_autoRefreshLevels; }
|
||||
|
||||
void ChannelFeatures::setAutoRefreshLevels(qint32 newAutoRefreshLevels) {
|
||||
m_autoRefreshLevels = newAutoRefreshLevels;
|
||||
}
|
||||
QList<ChannelItemSortField> ChannelFeatures::defaultSortFields() const { return m_defaultSortFields; }
|
||||
|
||||
void ChannelFeatures::setDefaultSortFields(QList<ChannelItemSortField> newDefaultSortFields) {
|
||||
m_defaultSortFields = newDefaultSortFields;
|
||||
}
|
||||
bool ChannelFeatures::supportsSortOrderToggle() const { return m_supportsSortOrderToggle; }
|
||||
|
||||
void ChannelFeatures::setSupportsSortOrderToggle(bool newSupportsSortOrderToggle) {
|
||||
m_supportsSortOrderToggle = newSupportsSortOrderToggle;
|
||||
}
|
||||
bool ChannelFeatures::supportsLatestMedia() const { return m_supportsLatestMedia; }
|
||||
|
||||
void ChannelFeatures::setSupportsLatestMedia(bool newSupportsLatestMedia) {
|
||||
m_supportsLatestMedia = newSupportsLatestMedia;
|
||||
}
|
||||
bool ChannelFeatures::canFilter() const { return m_canFilter; }
|
||||
|
||||
void ChannelFeatures::setCanFilter(bool newCanFilter) {
|
||||
m_canFilter = newCanFilter;
|
||||
}
|
||||
bool ChannelFeatures::supportsContentDownloading() const { return m_supportsContentDownloading; }
|
||||
|
||||
void ChannelFeatures::setSupportsContentDownloading(bool newSupportsContentDownloading) {
|
||||
m_supportsContentDownloading = newSupportsContentDownloading;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChannelFeatures = Jellyfin::DTO::ChannelFeatures;
|
||||
|
||||
template <>
|
||||
ChannelFeatures fromJsonValue<ChannelFeatures>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ChannelFeatures::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/channelitemsortfield.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ChannelItemSortFieldClass::ChannelItemSortFieldClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChannelItemSortField = Jellyfin::DTO::ChannelItemSortField;
|
||||
|
||||
template <>
|
||||
ChannelItemSortField fromJsonValue<ChannelItemSortField>(const QJsonValue &source) {
|
||||
if (!source.isString()) return ChannelItemSortField::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Name")) {
|
||||
return ChannelItemSortField::Name;
|
||||
}
|
||||
if (str == QStringLiteral("CommunityRating")) {
|
||||
return ChannelItemSortField::CommunityRating;
|
||||
}
|
||||
if (str == QStringLiteral("PremiereDate")) {
|
||||
return ChannelItemSortField::PremiereDate;
|
||||
}
|
||||
if (str == QStringLiteral("DateCreated")) {
|
||||
return ChannelItemSortField::DateCreated;
|
||||
}
|
||||
if (str == QStringLiteral("Runtime")) {
|
||||
return ChannelItemSortField::Runtime;
|
||||
}
|
||||
if (str == QStringLiteral("PlayCount")) {
|
||||
return ChannelItemSortField::PlayCount;
|
||||
}
|
||||
if (str == QStringLiteral("CommunityPlayCount")) {
|
||||
return ChannelItemSortField::CommunityPlayCount;
|
||||
}
|
||||
|
||||
return ChannelItemSortField::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/channelmappingoptionsdto.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ChannelMappingOptionsDto::ChannelMappingOptionsDto() {}
|
||||
ChannelMappingOptionsDto::ChannelMappingOptionsDto(const ChannelMappingOptionsDto &other) :
|
||||
m_tunerChannels(other.m_tunerChannels),
|
||||
m_providerChannels(other.m_providerChannels),
|
||||
m_mappings(other.m_mappings),
|
||||
m_providerName(other.m_providerName){}
|
||||
|
||||
ChannelMappingOptionsDto ChannelMappingOptionsDto::fromJson(QJsonObject source) {
|
||||
ChannelMappingOptionsDto instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ChannelMappingOptionsDto::setFromJson(QJsonObject source) {
|
||||
m_tunerChannels = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<TunerChannelMapping>>>(source["TunerChannels"]);
|
||||
m_providerChannels = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<NameIdPair>>>(source["ProviderChannels"]);
|
||||
m_mappings = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<NameValuePair>>>(source["Mappings"]);
|
||||
m_providerName = Jellyfin::Support::fromJsonValue<QString>(source["ProviderName"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ChannelMappingOptionsDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["TunerChannels"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<TunerChannelMapping>>>(m_tunerChannels);
|
||||
result["ProviderChannels"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<NameIdPair>>>(m_providerChannels);
|
||||
result["Mappings"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<NameValuePair>>>(m_mappings);
|
||||
result["ProviderName"] = Jellyfin::Support::toJsonValue<QString>(m_providerName);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QList<QSharedPointer<TunerChannelMapping>> ChannelMappingOptionsDto::tunerChannels() const { return m_tunerChannels; }
|
||||
|
||||
void ChannelMappingOptionsDto::setTunerChannels(QList<QSharedPointer<TunerChannelMapping>> newTunerChannels) {
|
||||
m_tunerChannels = newTunerChannels;
|
||||
}
|
||||
QList<QSharedPointer<NameIdPair>> ChannelMappingOptionsDto::providerChannels() const { return m_providerChannels; }
|
||||
|
||||
void ChannelMappingOptionsDto::setProviderChannels(QList<QSharedPointer<NameIdPair>> newProviderChannels) {
|
||||
m_providerChannels = newProviderChannels;
|
||||
}
|
||||
QList<QSharedPointer<NameValuePair>> ChannelMappingOptionsDto::mappings() const { return m_mappings; }
|
||||
|
||||
void ChannelMappingOptionsDto::setMappings(QList<QSharedPointer<NameValuePair>> newMappings) {
|
||||
m_mappings = newMappings;
|
||||
}
|
||||
QString ChannelMappingOptionsDto::providerName() const { return m_providerName; }
|
||||
|
||||
void ChannelMappingOptionsDto::setProviderName(QString newProviderName) {
|
||||
m_providerName = newProviderName;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChannelMappingOptionsDto = Jellyfin::DTO::ChannelMappingOptionsDto;
|
||||
|
||||
template <>
|
||||
ChannelMappingOptionsDto fromJsonValue<ChannelMappingOptionsDto>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ChannelMappingOptionsDto::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,78 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/channelmediacontenttype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ChannelMediaContentTypeClass::ChannelMediaContentTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChannelMediaContentType = Jellyfin::DTO::ChannelMediaContentType;
|
||||
|
||||
template <>
|
||||
ChannelMediaContentType fromJsonValue<ChannelMediaContentType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return ChannelMediaContentType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Clip")) {
|
||||
return ChannelMediaContentType::Clip;
|
||||
}
|
||||
if (str == QStringLiteral("Podcast")) {
|
||||
return ChannelMediaContentType::Podcast;
|
||||
}
|
||||
if (str == QStringLiteral("Trailer")) {
|
||||
return ChannelMediaContentType::Trailer;
|
||||
}
|
||||
if (str == QStringLiteral("Movie")) {
|
||||
return ChannelMediaContentType::Movie;
|
||||
}
|
||||
if (str == QStringLiteral("Episode")) {
|
||||
return ChannelMediaContentType::Episode;
|
||||
}
|
||||
if (str == QStringLiteral("Song")) {
|
||||
return ChannelMediaContentType::Song;
|
||||
}
|
||||
if (str == QStringLiteral("MovieExtra")) {
|
||||
return ChannelMediaContentType::MovieExtra;
|
||||
}
|
||||
if (str == QStringLiteral("TvExtra")) {
|
||||
return ChannelMediaContentType::TvExtra;
|
||||
}
|
||||
|
||||
return ChannelMediaContentType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/channelmediatype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ChannelMediaTypeClass::ChannelMediaTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChannelMediaType = Jellyfin::DTO::ChannelMediaType;
|
||||
|
||||
template <>
|
||||
ChannelMediaType fromJsonValue<ChannelMediaType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return ChannelMediaType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Audio")) {
|
||||
return ChannelMediaType::Audio;
|
||||
}
|
||||
if (str == QStringLiteral("Video")) {
|
||||
return ChannelMediaType::Video;
|
||||
}
|
||||
if (str == QStringLiteral("Photo")) {
|
||||
return ChannelMediaType::Photo;
|
||||
}
|
||||
|
||||
return ChannelMediaType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/channeltype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ChannelTypeClass::ChannelTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChannelType = Jellyfin::DTO::ChannelType;
|
||||
|
||||
template <>
|
||||
ChannelType fromJsonValue<ChannelType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return ChannelType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("TV")) {
|
||||
return ChannelType::TV;
|
||||
}
|
||||
if (str == QStringLiteral("Radio")) {
|
||||
return ChannelType::Radio;
|
||||
}
|
||||
|
||||
return ChannelType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/chapterinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ChapterInfo::ChapterInfo() {}
|
||||
ChapterInfo::ChapterInfo(const ChapterInfo &other) :
|
||||
m_startPositionTicks(other.m_startPositionTicks),
|
||||
m_name(other.m_name),
|
||||
m_imagePath(other.m_imagePath),
|
||||
m_imageDateModified(other.m_imageDateModified),
|
||||
m_imageTag(other.m_imageTag){}
|
||||
|
||||
ChapterInfo ChapterInfo::fromJson(QJsonObject source) {
|
||||
ChapterInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ChapterInfo::setFromJson(QJsonObject source) {
|
||||
m_startPositionTicks = Jellyfin::Support::fromJsonValue<qint64>(source["StartPositionTicks"]);
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_imagePath = Jellyfin::Support::fromJsonValue<QString>(source["ImagePath"]);
|
||||
m_imageDateModified = Jellyfin::Support::fromJsonValue<QDateTime>(source["ImageDateModified"]);
|
||||
m_imageTag = Jellyfin::Support::fromJsonValue<QString>(source["ImageTag"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ChapterInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["StartPositionTicks"] = Jellyfin::Support::toJsonValue<qint64>(m_startPositionTicks);
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["ImagePath"] = Jellyfin::Support::toJsonValue<QString>(m_imagePath);
|
||||
result["ImageDateModified"] = Jellyfin::Support::toJsonValue<QDateTime>(m_imageDateModified);
|
||||
result["ImageTag"] = Jellyfin::Support::toJsonValue<QString>(m_imageTag);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
qint64 ChapterInfo::startPositionTicks() const { return m_startPositionTicks; }
|
||||
|
||||
void ChapterInfo::setStartPositionTicks(qint64 newStartPositionTicks) {
|
||||
m_startPositionTicks = newStartPositionTicks;
|
||||
}
|
||||
QString ChapterInfo::name() const { return m_name; }
|
||||
|
||||
void ChapterInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString ChapterInfo::imagePath() const { return m_imagePath; }
|
||||
|
||||
void ChapterInfo::setImagePath(QString newImagePath) {
|
||||
m_imagePath = newImagePath;
|
||||
}
|
||||
QDateTime ChapterInfo::imageDateModified() const { return m_imageDateModified; }
|
||||
|
||||
void ChapterInfo::setImageDateModified(QDateTime newImageDateModified) {
|
||||
m_imageDateModified = newImageDateModified;
|
||||
}
|
||||
QString ChapterInfo::imageTag() const { return m_imageTag; }
|
||||
|
||||
void ChapterInfo::setImageTag(QString newImageTag) {
|
||||
m_imageTag = newImageTag;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ChapterInfo = Jellyfin::DTO::ChapterInfo;
|
||||
|
||||
template <>
|
||||
ChapterInfo fromJsonValue<ChapterInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ChapterInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,149 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/clientcapabilities.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ClientCapabilities::ClientCapabilities() {}
|
||||
ClientCapabilities::ClientCapabilities(const ClientCapabilities &other) :
|
||||
m_playableMediaTypes(other.m_playableMediaTypes),
|
||||
m_supportedCommands(other.m_supportedCommands),
|
||||
m_supportsMediaControl(other.m_supportsMediaControl),
|
||||
m_supportsContentUploading(other.m_supportsContentUploading),
|
||||
m_messageCallbackUrl(other.m_messageCallbackUrl),
|
||||
m_supportsPersistentIdentifier(other.m_supportsPersistentIdentifier),
|
||||
m_supportsSync(other.m_supportsSync),
|
||||
m_deviceProfile(other.m_deviceProfile),
|
||||
m_appStoreUrl(other.m_appStoreUrl),
|
||||
m_iconUrl(other.m_iconUrl){}
|
||||
|
||||
ClientCapabilities ClientCapabilities::fromJson(QJsonObject source) {
|
||||
ClientCapabilities instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ClientCapabilities::setFromJson(QJsonObject source) {
|
||||
m_playableMediaTypes = Jellyfin::Support::fromJsonValue<QStringList>(source["PlayableMediaTypes"]);
|
||||
m_supportedCommands = Jellyfin::Support::fromJsonValue<QList<GeneralCommandType>>(source["SupportedCommands"]);
|
||||
m_supportsMediaControl = Jellyfin::Support::fromJsonValue<bool>(source["SupportsMediaControl"]);
|
||||
m_supportsContentUploading = Jellyfin::Support::fromJsonValue<bool>(source["SupportsContentUploading"]);
|
||||
m_messageCallbackUrl = Jellyfin::Support::fromJsonValue<QString>(source["MessageCallbackUrl"]);
|
||||
m_supportsPersistentIdentifier = Jellyfin::Support::fromJsonValue<bool>(source["SupportsPersistentIdentifier"]);
|
||||
m_supportsSync = Jellyfin::Support::fromJsonValue<bool>(source["SupportsSync"]);
|
||||
m_deviceProfile = Jellyfin::Support::fromJsonValue<QSharedPointer<DeviceProfile>>(source["DeviceProfile"]);
|
||||
m_appStoreUrl = Jellyfin::Support::fromJsonValue<QString>(source["AppStoreUrl"]);
|
||||
m_iconUrl = Jellyfin::Support::fromJsonValue<QString>(source["IconUrl"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ClientCapabilities::toJson() {
|
||||
QJsonObject result;
|
||||
result["PlayableMediaTypes"] = Jellyfin::Support::toJsonValue<QStringList>(m_playableMediaTypes);
|
||||
result["SupportedCommands"] = Jellyfin::Support::toJsonValue<QList<GeneralCommandType>>(m_supportedCommands);
|
||||
result["SupportsMediaControl"] = Jellyfin::Support::toJsonValue<bool>(m_supportsMediaControl);
|
||||
result["SupportsContentUploading"] = Jellyfin::Support::toJsonValue<bool>(m_supportsContentUploading);
|
||||
result["MessageCallbackUrl"] = Jellyfin::Support::toJsonValue<QString>(m_messageCallbackUrl);
|
||||
result["SupportsPersistentIdentifier"] = Jellyfin::Support::toJsonValue<bool>(m_supportsPersistentIdentifier);
|
||||
result["SupportsSync"] = Jellyfin::Support::toJsonValue<bool>(m_supportsSync);
|
||||
result["DeviceProfile"] = Jellyfin::Support::toJsonValue<QSharedPointer<DeviceProfile>>(m_deviceProfile);
|
||||
result["AppStoreUrl"] = Jellyfin::Support::toJsonValue<QString>(m_appStoreUrl);
|
||||
result["IconUrl"] = Jellyfin::Support::toJsonValue<QString>(m_iconUrl);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QStringList ClientCapabilities::playableMediaTypes() const { return m_playableMediaTypes; }
|
||||
|
||||
void ClientCapabilities::setPlayableMediaTypes(QStringList newPlayableMediaTypes) {
|
||||
m_playableMediaTypes = newPlayableMediaTypes;
|
||||
}
|
||||
QList<GeneralCommandType> ClientCapabilities::supportedCommands() const { return m_supportedCommands; }
|
||||
|
||||
void ClientCapabilities::setSupportedCommands(QList<GeneralCommandType> newSupportedCommands) {
|
||||
m_supportedCommands = newSupportedCommands;
|
||||
}
|
||||
bool ClientCapabilities::supportsMediaControl() const { return m_supportsMediaControl; }
|
||||
|
||||
void ClientCapabilities::setSupportsMediaControl(bool newSupportsMediaControl) {
|
||||
m_supportsMediaControl = newSupportsMediaControl;
|
||||
}
|
||||
bool ClientCapabilities::supportsContentUploading() const { return m_supportsContentUploading; }
|
||||
|
||||
void ClientCapabilities::setSupportsContentUploading(bool newSupportsContentUploading) {
|
||||
m_supportsContentUploading = newSupportsContentUploading;
|
||||
}
|
||||
QString ClientCapabilities::messageCallbackUrl() const { return m_messageCallbackUrl; }
|
||||
|
||||
void ClientCapabilities::setMessageCallbackUrl(QString newMessageCallbackUrl) {
|
||||
m_messageCallbackUrl = newMessageCallbackUrl;
|
||||
}
|
||||
bool ClientCapabilities::supportsPersistentIdentifier() const { return m_supportsPersistentIdentifier; }
|
||||
|
||||
void ClientCapabilities::setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier) {
|
||||
m_supportsPersistentIdentifier = newSupportsPersistentIdentifier;
|
||||
}
|
||||
bool ClientCapabilities::supportsSync() const { return m_supportsSync; }
|
||||
|
||||
void ClientCapabilities::setSupportsSync(bool newSupportsSync) {
|
||||
m_supportsSync = newSupportsSync;
|
||||
}
|
||||
QSharedPointer<DeviceProfile> ClientCapabilities::deviceProfile() const { return m_deviceProfile; }
|
||||
|
||||
void ClientCapabilities::setDeviceProfile(QSharedPointer<DeviceProfile> newDeviceProfile) {
|
||||
m_deviceProfile = newDeviceProfile;
|
||||
}
|
||||
QString ClientCapabilities::appStoreUrl() const { return m_appStoreUrl; }
|
||||
|
||||
void ClientCapabilities::setAppStoreUrl(QString newAppStoreUrl) {
|
||||
m_appStoreUrl = newAppStoreUrl;
|
||||
}
|
||||
QString ClientCapabilities::iconUrl() const { return m_iconUrl; }
|
||||
|
||||
void ClientCapabilities::setIconUrl(QString newIconUrl) {
|
||||
m_iconUrl = newIconUrl;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ClientCapabilities = Jellyfin::DTO::ClientCapabilities;
|
||||
|
||||
template <>
|
||||
ClientCapabilities fromJsonValue<ClientCapabilities>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ClientCapabilities::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,149 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/clientcapabilitiesdto.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ClientCapabilitiesDto::ClientCapabilitiesDto() {}
|
||||
ClientCapabilitiesDto::ClientCapabilitiesDto(const ClientCapabilitiesDto &other) :
|
||||
m_playableMediaTypes(other.m_playableMediaTypes),
|
||||
m_supportedCommands(other.m_supportedCommands),
|
||||
m_supportsMediaControl(other.m_supportsMediaControl),
|
||||
m_supportsContentUploading(other.m_supportsContentUploading),
|
||||
m_messageCallbackUrl(other.m_messageCallbackUrl),
|
||||
m_supportsPersistentIdentifier(other.m_supportsPersistentIdentifier),
|
||||
m_supportsSync(other.m_supportsSync),
|
||||
m_deviceProfile(other.m_deviceProfile),
|
||||
m_appStoreUrl(other.m_appStoreUrl),
|
||||
m_iconUrl(other.m_iconUrl){}
|
||||
|
||||
ClientCapabilitiesDto ClientCapabilitiesDto::fromJson(QJsonObject source) {
|
||||
ClientCapabilitiesDto instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ClientCapabilitiesDto::setFromJson(QJsonObject source) {
|
||||
m_playableMediaTypes = Jellyfin::Support::fromJsonValue<QStringList>(source["PlayableMediaTypes"]);
|
||||
m_supportedCommands = Jellyfin::Support::fromJsonValue<QList<GeneralCommandType>>(source["SupportedCommands"]);
|
||||
m_supportsMediaControl = Jellyfin::Support::fromJsonValue<bool>(source["SupportsMediaControl"]);
|
||||
m_supportsContentUploading = Jellyfin::Support::fromJsonValue<bool>(source["SupportsContentUploading"]);
|
||||
m_messageCallbackUrl = Jellyfin::Support::fromJsonValue<QString>(source["MessageCallbackUrl"]);
|
||||
m_supportsPersistentIdentifier = Jellyfin::Support::fromJsonValue<bool>(source["SupportsPersistentIdentifier"]);
|
||||
m_supportsSync = Jellyfin::Support::fromJsonValue<bool>(source["SupportsSync"]);
|
||||
m_deviceProfile = Jellyfin::Support::fromJsonValue<QSharedPointer<DeviceProfile>>(source["DeviceProfile"]);
|
||||
m_appStoreUrl = Jellyfin::Support::fromJsonValue<QString>(source["AppStoreUrl"]);
|
||||
m_iconUrl = Jellyfin::Support::fromJsonValue<QString>(source["IconUrl"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ClientCapabilitiesDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["PlayableMediaTypes"] = Jellyfin::Support::toJsonValue<QStringList>(m_playableMediaTypes);
|
||||
result["SupportedCommands"] = Jellyfin::Support::toJsonValue<QList<GeneralCommandType>>(m_supportedCommands);
|
||||
result["SupportsMediaControl"] = Jellyfin::Support::toJsonValue<bool>(m_supportsMediaControl);
|
||||
result["SupportsContentUploading"] = Jellyfin::Support::toJsonValue<bool>(m_supportsContentUploading);
|
||||
result["MessageCallbackUrl"] = Jellyfin::Support::toJsonValue<QString>(m_messageCallbackUrl);
|
||||
result["SupportsPersistentIdentifier"] = Jellyfin::Support::toJsonValue<bool>(m_supportsPersistentIdentifier);
|
||||
result["SupportsSync"] = Jellyfin::Support::toJsonValue<bool>(m_supportsSync);
|
||||
result["DeviceProfile"] = Jellyfin::Support::toJsonValue<QSharedPointer<DeviceProfile>>(m_deviceProfile);
|
||||
result["AppStoreUrl"] = Jellyfin::Support::toJsonValue<QString>(m_appStoreUrl);
|
||||
result["IconUrl"] = Jellyfin::Support::toJsonValue<QString>(m_iconUrl);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QStringList ClientCapabilitiesDto::playableMediaTypes() const { return m_playableMediaTypes; }
|
||||
|
||||
void ClientCapabilitiesDto::setPlayableMediaTypes(QStringList newPlayableMediaTypes) {
|
||||
m_playableMediaTypes = newPlayableMediaTypes;
|
||||
}
|
||||
QList<GeneralCommandType> ClientCapabilitiesDto::supportedCommands() const { return m_supportedCommands; }
|
||||
|
||||
void ClientCapabilitiesDto::setSupportedCommands(QList<GeneralCommandType> newSupportedCommands) {
|
||||
m_supportedCommands = newSupportedCommands;
|
||||
}
|
||||
bool ClientCapabilitiesDto::supportsMediaControl() const { return m_supportsMediaControl; }
|
||||
|
||||
void ClientCapabilitiesDto::setSupportsMediaControl(bool newSupportsMediaControl) {
|
||||
m_supportsMediaControl = newSupportsMediaControl;
|
||||
}
|
||||
bool ClientCapabilitiesDto::supportsContentUploading() const { return m_supportsContentUploading; }
|
||||
|
||||
void ClientCapabilitiesDto::setSupportsContentUploading(bool newSupportsContentUploading) {
|
||||
m_supportsContentUploading = newSupportsContentUploading;
|
||||
}
|
||||
QString ClientCapabilitiesDto::messageCallbackUrl() const { return m_messageCallbackUrl; }
|
||||
|
||||
void ClientCapabilitiesDto::setMessageCallbackUrl(QString newMessageCallbackUrl) {
|
||||
m_messageCallbackUrl = newMessageCallbackUrl;
|
||||
}
|
||||
bool ClientCapabilitiesDto::supportsPersistentIdentifier() const { return m_supportsPersistentIdentifier; }
|
||||
|
||||
void ClientCapabilitiesDto::setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier) {
|
||||
m_supportsPersistentIdentifier = newSupportsPersistentIdentifier;
|
||||
}
|
||||
bool ClientCapabilitiesDto::supportsSync() const { return m_supportsSync; }
|
||||
|
||||
void ClientCapabilitiesDto::setSupportsSync(bool newSupportsSync) {
|
||||
m_supportsSync = newSupportsSync;
|
||||
}
|
||||
QSharedPointer<DeviceProfile> ClientCapabilitiesDto::deviceProfile() const { return m_deviceProfile; }
|
||||
|
||||
void ClientCapabilitiesDto::setDeviceProfile(QSharedPointer<DeviceProfile> newDeviceProfile) {
|
||||
m_deviceProfile = newDeviceProfile;
|
||||
}
|
||||
QString ClientCapabilitiesDto::appStoreUrl() const { return m_appStoreUrl; }
|
||||
|
||||
void ClientCapabilitiesDto::setAppStoreUrl(QString newAppStoreUrl) {
|
||||
m_appStoreUrl = newAppStoreUrl;
|
||||
}
|
||||
QString ClientCapabilitiesDto::iconUrl() const { return m_iconUrl; }
|
||||
|
||||
void ClientCapabilitiesDto::setIconUrl(QString newIconUrl) {
|
||||
m_iconUrl = newIconUrl;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ClientCapabilitiesDto = Jellyfin::DTO::ClientCapabilitiesDto;
|
||||
|
||||
template <>
|
||||
ClientCapabilitiesDto fromJsonValue<ClientCapabilitiesDto>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ClientCapabilitiesDto::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/codecprofile.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
CodecProfile::CodecProfile() {}
|
||||
CodecProfile::CodecProfile(const CodecProfile &other) :
|
||||
m_type(other.m_type),
|
||||
m_conditions(other.m_conditions),
|
||||
m_applyConditions(other.m_applyConditions),
|
||||
m_codec(other.m_codec),
|
||||
m_container(other.m_container){}
|
||||
|
||||
CodecProfile CodecProfile::fromJson(QJsonObject source) {
|
||||
CodecProfile instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void CodecProfile::setFromJson(QJsonObject source) {
|
||||
m_type = Jellyfin::Support::fromJsonValue<CodecType>(source["Type"]);
|
||||
m_conditions = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<ProfileCondition>>>(source["Conditions"]);
|
||||
m_applyConditions = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<ProfileCondition>>>(source["ApplyConditions"]);
|
||||
m_codec = Jellyfin::Support::fromJsonValue<QString>(source["Codec"]);
|
||||
m_container = Jellyfin::Support::fromJsonValue<QString>(source["Container"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject CodecProfile::toJson() {
|
||||
QJsonObject result;
|
||||
result["Type"] = Jellyfin::Support::toJsonValue<CodecType>(m_type);
|
||||
result["Conditions"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<ProfileCondition>>>(m_conditions);
|
||||
result["ApplyConditions"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<ProfileCondition>>>(m_applyConditions);
|
||||
result["Codec"] = Jellyfin::Support::toJsonValue<QString>(m_codec);
|
||||
result["Container"] = Jellyfin::Support::toJsonValue<QString>(m_container);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
CodecType CodecProfile::type() const { return m_type; }
|
||||
|
||||
void CodecProfile::setType(CodecType newType) {
|
||||
m_type = newType;
|
||||
}
|
||||
QList<QSharedPointer<ProfileCondition>> CodecProfile::conditions() const { return m_conditions; }
|
||||
|
||||
void CodecProfile::setConditions(QList<QSharedPointer<ProfileCondition>> newConditions) {
|
||||
m_conditions = newConditions;
|
||||
}
|
||||
QList<QSharedPointer<ProfileCondition>> CodecProfile::applyConditions() const { return m_applyConditions; }
|
||||
|
||||
void CodecProfile::setApplyConditions(QList<QSharedPointer<ProfileCondition>> newApplyConditions) {
|
||||
m_applyConditions = newApplyConditions;
|
||||
}
|
||||
QString CodecProfile::codec() const { return m_codec; }
|
||||
|
||||
void CodecProfile::setCodec(QString newCodec) {
|
||||
m_codec = newCodec;
|
||||
}
|
||||
QString CodecProfile::container() const { return m_container; }
|
||||
|
||||
void CodecProfile::setContainer(QString newContainer) {
|
||||
m_container = newContainer;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CodecProfile = Jellyfin::DTO::CodecProfile;
|
||||
|
||||
template <>
|
||||
CodecProfile fromJsonValue<CodecProfile>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return CodecProfile::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/codectype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
CodecTypeClass::CodecTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CodecType = Jellyfin::DTO::CodecType;
|
||||
|
||||
template <>
|
||||
CodecType fromJsonValue<CodecType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return CodecType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Video")) {
|
||||
return CodecType::Video;
|
||||
}
|
||||
if (str == QStringLiteral("VideoAudio")) {
|
||||
return CodecType::VideoAudio;
|
||||
}
|
||||
if (str == QStringLiteral("Audio")) {
|
||||
return CodecType::Audio;
|
||||
}
|
||||
|
||||
return CodecType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/collectioncreationresult.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
CollectionCreationResult::CollectionCreationResult() {}
|
||||
CollectionCreationResult::CollectionCreationResult(const CollectionCreationResult &other) :
|
||||
m_jellyfinId(other.m_jellyfinId){}
|
||||
|
||||
CollectionCreationResult CollectionCreationResult::fromJson(QJsonObject source) {
|
||||
CollectionCreationResult instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void CollectionCreationResult::setFromJson(QJsonObject source) {
|
||||
m_jellyfinId = Jellyfin::Support::fromJsonValue<QUuid>(source["Id"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject CollectionCreationResult::toJson() {
|
||||
QJsonObject result;
|
||||
result["Id"] = Jellyfin::Support::toJsonValue<QUuid>(m_jellyfinId);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QUuid CollectionCreationResult::jellyfinId() const { return m_jellyfinId; }
|
||||
|
||||
void CollectionCreationResult::setJellyfinId(QUuid newJellyfinId) {
|
||||
m_jellyfinId = newJellyfinId;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CollectionCreationResult = Jellyfin::DTO::CollectionCreationResult;
|
||||
|
||||
template <>
|
||||
CollectionCreationResult fromJsonValue<CollectionCreationResult>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return CollectionCreationResult::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,125 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/configurationpageinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ConfigurationPageInfo::ConfigurationPageInfo() {}
|
||||
ConfigurationPageInfo::ConfigurationPageInfo(const ConfigurationPageInfo &other) :
|
||||
m_name(other.m_name),
|
||||
m_enableInMainMenu(other.m_enableInMainMenu),
|
||||
m_menuSection(other.m_menuSection),
|
||||
m_menuIcon(other.m_menuIcon),
|
||||
m_displayName(other.m_displayName),
|
||||
m_configurationPageType(other.m_configurationPageType),
|
||||
m_pluginId(other.m_pluginId){}
|
||||
|
||||
ConfigurationPageInfo ConfigurationPageInfo::fromJson(QJsonObject source) {
|
||||
ConfigurationPageInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ConfigurationPageInfo::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_enableInMainMenu = Jellyfin::Support::fromJsonValue<bool>(source["EnableInMainMenu"]);
|
||||
m_menuSection = Jellyfin::Support::fromJsonValue<QString>(source["MenuSection"]);
|
||||
m_menuIcon = Jellyfin::Support::fromJsonValue<QString>(source["MenuIcon"]);
|
||||
m_displayName = Jellyfin::Support::fromJsonValue<QString>(source["DisplayName"]);
|
||||
m_configurationPageType = Jellyfin::Support::fromJsonValue<ConfigurationPageType>(source["ConfigurationPageType"]);
|
||||
m_pluginId = Jellyfin::Support::fromJsonValue<QUuid>(source["PluginId"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ConfigurationPageInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["EnableInMainMenu"] = Jellyfin::Support::toJsonValue<bool>(m_enableInMainMenu);
|
||||
result["MenuSection"] = Jellyfin::Support::toJsonValue<QString>(m_menuSection);
|
||||
result["MenuIcon"] = Jellyfin::Support::toJsonValue<QString>(m_menuIcon);
|
||||
result["DisplayName"] = Jellyfin::Support::toJsonValue<QString>(m_displayName);
|
||||
result["ConfigurationPageType"] = Jellyfin::Support::toJsonValue<ConfigurationPageType>(m_configurationPageType);
|
||||
result["PluginId"] = Jellyfin::Support::toJsonValue<QUuid>(m_pluginId);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString ConfigurationPageInfo::name() const { return m_name; }
|
||||
|
||||
void ConfigurationPageInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
bool ConfigurationPageInfo::enableInMainMenu() const { return m_enableInMainMenu; }
|
||||
|
||||
void ConfigurationPageInfo::setEnableInMainMenu(bool newEnableInMainMenu) {
|
||||
m_enableInMainMenu = newEnableInMainMenu;
|
||||
}
|
||||
QString ConfigurationPageInfo::menuSection() const { return m_menuSection; }
|
||||
|
||||
void ConfigurationPageInfo::setMenuSection(QString newMenuSection) {
|
||||
m_menuSection = newMenuSection;
|
||||
}
|
||||
QString ConfigurationPageInfo::menuIcon() const { return m_menuIcon; }
|
||||
|
||||
void ConfigurationPageInfo::setMenuIcon(QString newMenuIcon) {
|
||||
m_menuIcon = newMenuIcon;
|
||||
}
|
||||
QString ConfigurationPageInfo::displayName() const { return m_displayName; }
|
||||
|
||||
void ConfigurationPageInfo::setDisplayName(QString newDisplayName) {
|
||||
m_displayName = newDisplayName;
|
||||
}
|
||||
ConfigurationPageType ConfigurationPageInfo::configurationPageType() const { return m_configurationPageType; }
|
||||
|
||||
void ConfigurationPageInfo::setConfigurationPageType(ConfigurationPageType newConfigurationPageType) {
|
||||
m_configurationPageType = newConfigurationPageType;
|
||||
}
|
||||
QUuid ConfigurationPageInfo::pluginId() const { return m_pluginId; }
|
||||
|
||||
void ConfigurationPageInfo::setPluginId(QUuid newPluginId) {
|
||||
m_pluginId = newPluginId;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ConfigurationPageInfo = Jellyfin::DTO::ConfigurationPageInfo;
|
||||
|
||||
template <>
|
||||
ConfigurationPageInfo fromJsonValue<ConfigurationPageInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ConfigurationPageInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/configurationpagetype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ConfigurationPageTypeClass::ConfigurationPageTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ConfigurationPageType = Jellyfin::DTO::ConfigurationPageType;
|
||||
|
||||
template <>
|
||||
ConfigurationPageType fromJsonValue<ConfigurationPageType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return ConfigurationPageType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("PluginConfiguration")) {
|
||||
return ConfigurationPageType::PluginConfiguration;
|
||||
}
|
||||
if (str == QStringLiteral("None")) {
|
||||
return ConfigurationPageType::None;
|
||||
}
|
||||
|
||||
return ConfigurationPageType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/containerprofile.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ContainerProfile::ContainerProfile() {}
|
||||
ContainerProfile::ContainerProfile(const ContainerProfile &other) :
|
||||
m_type(other.m_type),
|
||||
m_conditions(other.m_conditions),
|
||||
m_container(other.m_container){}
|
||||
|
||||
ContainerProfile ContainerProfile::fromJson(QJsonObject source) {
|
||||
ContainerProfile instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ContainerProfile::setFromJson(QJsonObject source) {
|
||||
m_type = Jellyfin::Support::fromJsonValue<DlnaProfileType>(source["Type"]);
|
||||
m_conditions = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<ProfileCondition>>>(source["Conditions"]);
|
||||
m_container = Jellyfin::Support::fromJsonValue<QString>(source["Container"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ContainerProfile::toJson() {
|
||||
QJsonObject result;
|
||||
result["Type"] = Jellyfin::Support::toJsonValue<DlnaProfileType>(m_type);
|
||||
result["Conditions"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<ProfileCondition>>>(m_conditions);
|
||||
result["Container"] = Jellyfin::Support::toJsonValue<QString>(m_container);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
DlnaProfileType ContainerProfile::type() const { return m_type; }
|
||||
|
||||
void ContainerProfile::setType(DlnaProfileType newType) {
|
||||
m_type = newType;
|
||||
}
|
||||
QList<QSharedPointer<ProfileCondition>> ContainerProfile::conditions() const { return m_conditions; }
|
||||
|
||||
void ContainerProfile::setConditions(QList<QSharedPointer<ProfileCondition>> newConditions) {
|
||||
m_conditions = newConditions;
|
||||
}
|
||||
QString ContainerProfile::container() const { return m_container; }
|
||||
|
||||
void ContainerProfile::setContainer(QString newContainer) {
|
||||
m_container = newContainer;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ContainerProfile = Jellyfin::DTO::ContainerProfile;
|
||||
|
||||
template <>
|
||||
ContainerProfile fromJsonValue<ContainerProfile>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ContainerProfile::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/controlresponse.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ControlResponse::ControlResponse() {}
|
||||
ControlResponse::ControlResponse(const ControlResponse &other) :
|
||||
m_headers(other.m_headers),
|
||||
m_xml(other.m_xml),
|
||||
m_isSuccessful(other.m_isSuccessful){}
|
||||
|
||||
ControlResponse ControlResponse::fromJson(QJsonObject source) {
|
||||
ControlResponse instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ControlResponse::setFromJson(QJsonObject source) {
|
||||
m_headers = Jellyfin::Support::fromJsonValue<QJsonObject>(source["Headers"]);
|
||||
m_xml = Jellyfin::Support::fromJsonValue<QString>(source["Xml"]);
|
||||
m_isSuccessful = Jellyfin::Support::fromJsonValue<bool>(source["IsSuccessful"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ControlResponse::toJson() {
|
||||
QJsonObject result;
|
||||
result["Headers"] = Jellyfin::Support::toJsonValue<QJsonObject>(m_headers);
|
||||
result["Xml"] = Jellyfin::Support::toJsonValue<QString>(m_xml);
|
||||
result["IsSuccessful"] = Jellyfin::Support::toJsonValue<bool>(m_isSuccessful);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QJsonObject ControlResponse::headers() const { return m_headers; }
|
||||
|
||||
void ControlResponse::setHeaders(QJsonObject newHeaders) {
|
||||
m_headers = newHeaders;
|
||||
}
|
||||
QString ControlResponse::xml() const { return m_xml; }
|
||||
|
||||
void ControlResponse::setXml(QString newXml) {
|
||||
m_xml = newXml;
|
||||
}
|
||||
bool ControlResponse::isSuccessful() const { return m_isSuccessful; }
|
||||
|
||||
void ControlResponse::setIsSuccessful(bool newIsSuccessful) {
|
||||
m_isSuccessful = newIsSuccessful;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ControlResponse = Jellyfin::DTO::ControlResponse;
|
||||
|
||||
template <>
|
||||
ControlResponse fromJsonValue<ControlResponse>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ControlResponse::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/countryinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
CountryInfo::CountryInfo() {}
|
||||
CountryInfo::CountryInfo(const CountryInfo &other) :
|
||||
m_name(other.m_name),
|
||||
m_displayName(other.m_displayName),
|
||||
m_twoLetterISORegionName(other.m_twoLetterISORegionName),
|
||||
m_threeLetterISORegionName(other.m_threeLetterISORegionName){}
|
||||
|
||||
CountryInfo CountryInfo::fromJson(QJsonObject source) {
|
||||
CountryInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void CountryInfo::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_displayName = Jellyfin::Support::fromJsonValue<QString>(source["DisplayName"]);
|
||||
m_twoLetterISORegionName = Jellyfin::Support::fromJsonValue<QString>(source["TwoLetterISORegionName"]);
|
||||
m_threeLetterISORegionName = Jellyfin::Support::fromJsonValue<QString>(source["ThreeLetterISORegionName"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject CountryInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["DisplayName"] = Jellyfin::Support::toJsonValue<QString>(m_displayName);
|
||||
result["TwoLetterISORegionName"] = Jellyfin::Support::toJsonValue<QString>(m_twoLetterISORegionName);
|
||||
result["ThreeLetterISORegionName"] = Jellyfin::Support::toJsonValue<QString>(m_threeLetterISORegionName);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString CountryInfo::name() const { return m_name; }
|
||||
|
||||
void CountryInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString CountryInfo::displayName() const { return m_displayName; }
|
||||
|
||||
void CountryInfo::setDisplayName(QString newDisplayName) {
|
||||
m_displayName = newDisplayName;
|
||||
}
|
||||
QString CountryInfo::twoLetterISORegionName() const { return m_twoLetterISORegionName; }
|
||||
|
||||
void CountryInfo::setTwoLetterISORegionName(QString newTwoLetterISORegionName) {
|
||||
m_twoLetterISORegionName = newTwoLetterISORegionName;
|
||||
}
|
||||
QString CountryInfo::threeLetterISORegionName() const { return m_threeLetterISORegionName; }
|
||||
|
||||
void CountryInfo::setThreeLetterISORegionName(QString newThreeLetterISORegionName) {
|
||||
m_threeLetterISORegionName = newThreeLetterISORegionName;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CountryInfo = Jellyfin::DTO::CountryInfo;
|
||||
|
||||
template <>
|
||||
CountryInfo fromJsonValue<CountryInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return CountryInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/createplaylistdto.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
CreatePlaylistDto::CreatePlaylistDto() {}
|
||||
CreatePlaylistDto::CreatePlaylistDto(const CreatePlaylistDto &other) :
|
||||
m_name(other.m_name),
|
||||
m_ids(other.m_ids),
|
||||
m_userId(other.m_userId),
|
||||
m_mediaType(other.m_mediaType){}
|
||||
|
||||
CreatePlaylistDto CreatePlaylistDto::fromJson(QJsonObject source) {
|
||||
CreatePlaylistDto instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void CreatePlaylistDto::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_ids = Jellyfin::Support::fromJsonValue<QList<QUuid>>(source["Ids"]);
|
||||
m_userId = Jellyfin::Support::fromJsonValue<QUuid>(source["UserId"]);
|
||||
m_mediaType = Jellyfin::Support::fromJsonValue<QString>(source["MediaType"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject CreatePlaylistDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Ids"] = Jellyfin::Support::toJsonValue<QList<QUuid>>(m_ids);
|
||||
result["UserId"] = Jellyfin::Support::toJsonValue<QUuid>(m_userId);
|
||||
result["MediaType"] = Jellyfin::Support::toJsonValue<QString>(m_mediaType);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString CreatePlaylistDto::name() const { return m_name; }
|
||||
|
||||
void CreatePlaylistDto::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QList<QUuid> CreatePlaylistDto::ids() const { return m_ids; }
|
||||
|
||||
void CreatePlaylistDto::setIds(QList<QUuid> newIds) {
|
||||
m_ids = newIds;
|
||||
}
|
||||
QUuid CreatePlaylistDto::userId() const { return m_userId; }
|
||||
|
||||
void CreatePlaylistDto::setUserId(QUuid newUserId) {
|
||||
m_userId = newUserId;
|
||||
}
|
||||
QString CreatePlaylistDto::mediaType() const { return m_mediaType; }
|
||||
|
||||
void CreatePlaylistDto::setMediaType(QString newMediaType) {
|
||||
m_mediaType = newMediaType;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CreatePlaylistDto = Jellyfin::DTO::CreatePlaylistDto;
|
||||
|
||||
template <>
|
||||
CreatePlaylistDto fromJsonValue<CreatePlaylistDto>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return CreatePlaylistDto::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,85 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/createuserbyname.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
CreateUserByName::CreateUserByName() {}
|
||||
CreateUserByName::CreateUserByName(const CreateUserByName &other) :
|
||||
m_name(other.m_name),
|
||||
m_password(other.m_password){}
|
||||
|
||||
CreateUserByName CreateUserByName::fromJson(QJsonObject source) {
|
||||
CreateUserByName instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void CreateUserByName::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_password = Jellyfin::Support::fromJsonValue<QString>(source["Password"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject CreateUserByName::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Password"] = Jellyfin::Support::toJsonValue<QString>(m_password);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString CreateUserByName::name() const { return m_name; }
|
||||
|
||||
void CreateUserByName::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString CreateUserByName::password() const { return m_password; }
|
||||
|
||||
void CreateUserByName::setPassword(QString newPassword) {
|
||||
m_password = newPassword;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CreateUserByName = Jellyfin::DTO::CreateUserByName;
|
||||
|
||||
template <>
|
||||
CreateUserByName fromJsonValue<CreateUserByName>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return CreateUserByName::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/culturedto.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
CultureDto::CultureDto() {}
|
||||
CultureDto::CultureDto(const CultureDto &other) :
|
||||
m_name(other.m_name),
|
||||
m_displayName(other.m_displayName),
|
||||
m_twoLetterISOLanguageName(other.m_twoLetterISOLanguageName),
|
||||
m_threeLetterISOLanguageName(other.m_threeLetterISOLanguageName),
|
||||
m_threeLetterISOLanguageNames(other.m_threeLetterISOLanguageNames){}
|
||||
|
||||
CultureDto CultureDto::fromJson(QJsonObject source) {
|
||||
CultureDto instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void CultureDto::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_displayName = Jellyfin::Support::fromJsonValue<QString>(source["DisplayName"]);
|
||||
m_twoLetterISOLanguageName = Jellyfin::Support::fromJsonValue<QString>(source["TwoLetterISOLanguageName"]);
|
||||
m_threeLetterISOLanguageName = Jellyfin::Support::fromJsonValue<QString>(source["ThreeLetterISOLanguageName"]);
|
||||
m_threeLetterISOLanguageNames = Jellyfin::Support::fromJsonValue<QStringList>(source["ThreeLetterISOLanguageNames"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject CultureDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["DisplayName"] = Jellyfin::Support::toJsonValue<QString>(m_displayName);
|
||||
result["TwoLetterISOLanguageName"] = Jellyfin::Support::toJsonValue<QString>(m_twoLetterISOLanguageName);
|
||||
result["ThreeLetterISOLanguageName"] = Jellyfin::Support::toJsonValue<QString>(m_threeLetterISOLanguageName);
|
||||
result["ThreeLetterISOLanguageNames"] = Jellyfin::Support::toJsonValue<QStringList>(m_threeLetterISOLanguageNames);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString CultureDto::name() const { return m_name; }
|
||||
|
||||
void CultureDto::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString CultureDto::displayName() const { return m_displayName; }
|
||||
|
||||
void CultureDto::setDisplayName(QString newDisplayName) {
|
||||
m_displayName = newDisplayName;
|
||||
}
|
||||
QString CultureDto::twoLetterISOLanguageName() const { return m_twoLetterISOLanguageName; }
|
||||
|
||||
void CultureDto::setTwoLetterISOLanguageName(QString newTwoLetterISOLanguageName) {
|
||||
m_twoLetterISOLanguageName = newTwoLetterISOLanguageName;
|
||||
}
|
||||
QString CultureDto::threeLetterISOLanguageName() const { return m_threeLetterISOLanguageName; }
|
||||
|
||||
void CultureDto::setThreeLetterISOLanguageName(QString newThreeLetterISOLanguageName) {
|
||||
m_threeLetterISOLanguageName = newThreeLetterISOLanguageName;
|
||||
}
|
||||
QStringList CultureDto::threeLetterISOLanguageNames() const { return m_threeLetterISOLanguageNames; }
|
||||
|
||||
void CultureDto::setThreeLetterISOLanguageNames(QStringList newThreeLetterISOLanguageNames) {
|
||||
m_threeLetterISOLanguageNames = newThreeLetterISOLanguageNames;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using CultureDto = Jellyfin::DTO::CultureDto;
|
||||
|
||||
template <>
|
||||
CultureDto fromJsonValue<CultureDto>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return CultureDto::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/dayofweek.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DayOfWeekClass::DayOfWeekClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DayOfWeek = Jellyfin::DTO::DayOfWeek;
|
||||
|
||||
template <>
|
||||
DayOfWeek fromJsonValue<DayOfWeek>(const QJsonValue &source) {
|
||||
if (!source.isString()) return DayOfWeek::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Sunday")) {
|
||||
return DayOfWeek::Sunday;
|
||||
}
|
||||
if (str == QStringLiteral("Monday")) {
|
||||
return DayOfWeek::Monday;
|
||||
}
|
||||
if (str == QStringLiteral("Tuesday")) {
|
||||
return DayOfWeek::Tuesday;
|
||||
}
|
||||
if (str == QStringLiteral("Wednesday")) {
|
||||
return DayOfWeek::Wednesday;
|
||||
}
|
||||
if (str == QStringLiteral("Thursday")) {
|
||||
return DayOfWeek::Thursday;
|
||||
}
|
||||
if (str == QStringLiteral("Friday")) {
|
||||
return DayOfWeek::Friday;
|
||||
}
|
||||
if (str == QStringLiteral("Saturday")) {
|
||||
return DayOfWeek::Saturday;
|
||||
}
|
||||
|
||||
return DayOfWeek::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/daypattern.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DayPatternClass::DayPatternClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DayPattern = Jellyfin::DTO::DayPattern;
|
||||
|
||||
template <>
|
||||
DayPattern fromJsonValue<DayPattern>(const QJsonValue &source) {
|
||||
if (!source.isString()) return DayPattern::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Daily")) {
|
||||
return DayPattern::Daily;
|
||||
}
|
||||
if (str == QStringLiteral("Weekdays")) {
|
||||
return DayPattern::Weekdays;
|
||||
}
|
||||
if (str == QStringLiteral("Weekends")) {
|
||||
return DayPattern::Weekends;
|
||||
}
|
||||
|
||||
return DayPattern::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/defaultdirectorybrowserinfodto.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DefaultDirectoryBrowserInfoDto::DefaultDirectoryBrowserInfoDto() {}
|
||||
DefaultDirectoryBrowserInfoDto::DefaultDirectoryBrowserInfoDto(const DefaultDirectoryBrowserInfoDto &other) :
|
||||
m_path(other.m_path){}
|
||||
|
||||
DefaultDirectoryBrowserInfoDto DefaultDirectoryBrowserInfoDto::fromJson(QJsonObject source) {
|
||||
DefaultDirectoryBrowserInfoDto instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void DefaultDirectoryBrowserInfoDto::setFromJson(QJsonObject source) {
|
||||
m_path = Jellyfin::Support::fromJsonValue<QString>(source["Path"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject DefaultDirectoryBrowserInfoDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["Path"] = Jellyfin::Support::toJsonValue<QString>(m_path);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString DefaultDirectoryBrowserInfoDto::path() const { return m_path; }
|
||||
|
||||
void DefaultDirectoryBrowserInfoDto::setPath(QString newPath) {
|
||||
m_path = newPath;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DefaultDirectoryBrowserInfoDto = Jellyfin::DTO::DefaultDirectoryBrowserInfoDto;
|
||||
|
||||
template <>
|
||||
DefaultDirectoryBrowserInfoDto fromJsonValue<DefaultDirectoryBrowserInfoDto>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return DefaultDirectoryBrowserInfoDto::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,141 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/deviceidentification.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DeviceIdentification::DeviceIdentification() {}
|
||||
DeviceIdentification::DeviceIdentification(const DeviceIdentification &other) :
|
||||
m_friendlyName(other.m_friendlyName),
|
||||
m_modelNumber(other.m_modelNumber),
|
||||
m_serialNumber(other.m_serialNumber),
|
||||
m_modelName(other.m_modelName),
|
||||
m_modelDescription(other.m_modelDescription),
|
||||
m_modelUrl(other.m_modelUrl),
|
||||
m_manufacturer(other.m_manufacturer),
|
||||
m_manufacturerUrl(other.m_manufacturerUrl),
|
||||
m_headers(other.m_headers){}
|
||||
|
||||
DeviceIdentification DeviceIdentification::fromJson(QJsonObject source) {
|
||||
DeviceIdentification instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void DeviceIdentification::setFromJson(QJsonObject source) {
|
||||
m_friendlyName = Jellyfin::Support::fromJsonValue<QString>(source["FriendlyName"]);
|
||||
m_modelNumber = Jellyfin::Support::fromJsonValue<QString>(source["ModelNumber"]);
|
||||
m_serialNumber = Jellyfin::Support::fromJsonValue<QString>(source["SerialNumber"]);
|
||||
m_modelName = Jellyfin::Support::fromJsonValue<QString>(source["ModelName"]);
|
||||
m_modelDescription = Jellyfin::Support::fromJsonValue<QString>(source["ModelDescription"]);
|
||||
m_modelUrl = Jellyfin::Support::fromJsonValue<QString>(source["ModelUrl"]);
|
||||
m_manufacturer = Jellyfin::Support::fromJsonValue<QString>(source["Manufacturer"]);
|
||||
m_manufacturerUrl = Jellyfin::Support::fromJsonValue<QString>(source["ManufacturerUrl"]);
|
||||
m_headers = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<HttpHeaderInfo>>>(source["Headers"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject DeviceIdentification::toJson() {
|
||||
QJsonObject result;
|
||||
result["FriendlyName"] = Jellyfin::Support::toJsonValue<QString>(m_friendlyName);
|
||||
result["ModelNumber"] = Jellyfin::Support::toJsonValue<QString>(m_modelNumber);
|
||||
result["SerialNumber"] = Jellyfin::Support::toJsonValue<QString>(m_serialNumber);
|
||||
result["ModelName"] = Jellyfin::Support::toJsonValue<QString>(m_modelName);
|
||||
result["ModelDescription"] = Jellyfin::Support::toJsonValue<QString>(m_modelDescription);
|
||||
result["ModelUrl"] = Jellyfin::Support::toJsonValue<QString>(m_modelUrl);
|
||||
result["Manufacturer"] = Jellyfin::Support::toJsonValue<QString>(m_manufacturer);
|
||||
result["ManufacturerUrl"] = Jellyfin::Support::toJsonValue<QString>(m_manufacturerUrl);
|
||||
result["Headers"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<HttpHeaderInfo>>>(m_headers);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString DeviceIdentification::friendlyName() const { return m_friendlyName; }
|
||||
|
||||
void DeviceIdentification::setFriendlyName(QString newFriendlyName) {
|
||||
m_friendlyName = newFriendlyName;
|
||||
}
|
||||
QString DeviceIdentification::modelNumber() const { return m_modelNumber; }
|
||||
|
||||
void DeviceIdentification::setModelNumber(QString newModelNumber) {
|
||||
m_modelNumber = newModelNumber;
|
||||
}
|
||||
QString DeviceIdentification::serialNumber() const { return m_serialNumber; }
|
||||
|
||||
void DeviceIdentification::setSerialNumber(QString newSerialNumber) {
|
||||
m_serialNumber = newSerialNumber;
|
||||
}
|
||||
QString DeviceIdentification::modelName() const { return m_modelName; }
|
||||
|
||||
void DeviceIdentification::setModelName(QString newModelName) {
|
||||
m_modelName = newModelName;
|
||||
}
|
||||
QString DeviceIdentification::modelDescription() const { return m_modelDescription; }
|
||||
|
||||
void DeviceIdentification::setModelDescription(QString newModelDescription) {
|
||||
m_modelDescription = newModelDescription;
|
||||
}
|
||||
QString DeviceIdentification::modelUrl() const { return m_modelUrl; }
|
||||
|
||||
void DeviceIdentification::setModelUrl(QString newModelUrl) {
|
||||
m_modelUrl = newModelUrl;
|
||||
}
|
||||
QString DeviceIdentification::manufacturer() const { return m_manufacturer; }
|
||||
|
||||
void DeviceIdentification::setManufacturer(QString newManufacturer) {
|
||||
m_manufacturer = newManufacturer;
|
||||
}
|
||||
QString DeviceIdentification::manufacturerUrl() const { return m_manufacturerUrl; }
|
||||
|
||||
void DeviceIdentification::setManufacturerUrl(QString newManufacturerUrl) {
|
||||
m_manufacturerUrl = newManufacturerUrl;
|
||||
}
|
||||
QList<QSharedPointer<HttpHeaderInfo>> DeviceIdentification::headers() const { return m_headers; }
|
||||
|
||||
void DeviceIdentification::setHeaders(QList<QSharedPointer<HttpHeaderInfo>> newHeaders) {
|
||||
m_headers = newHeaders;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceIdentification = Jellyfin::DTO::DeviceIdentification;
|
||||
|
||||
template <>
|
||||
DeviceIdentification fromJsonValue<DeviceIdentification>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return DeviceIdentification::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,141 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/deviceinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DeviceInfo::DeviceInfo() {}
|
||||
DeviceInfo::DeviceInfo(const DeviceInfo &other) :
|
||||
m_name(other.m_name),
|
||||
m_jellyfinId(other.m_jellyfinId),
|
||||
m_lastUserName(other.m_lastUserName),
|
||||
m_appName(other.m_appName),
|
||||
m_appVersion(other.m_appVersion),
|
||||
m_lastUserId(other.m_lastUserId),
|
||||
m_dateLastActivity(other.m_dateLastActivity),
|
||||
m_capabilities(other.m_capabilities),
|
||||
m_iconUrl(other.m_iconUrl){}
|
||||
|
||||
DeviceInfo DeviceInfo::fromJson(QJsonObject source) {
|
||||
DeviceInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void DeviceInfo::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_jellyfinId = Jellyfin::Support::fromJsonValue<QString>(source["Id"]);
|
||||
m_lastUserName = Jellyfin::Support::fromJsonValue<QString>(source["LastUserName"]);
|
||||
m_appName = Jellyfin::Support::fromJsonValue<QString>(source["AppName"]);
|
||||
m_appVersion = Jellyfin::Support::fromJsonValue<QString>(source["AppVersion"]);
|
||||
m_lastUserId = Jellyfin::Support::fromJsonValue<QUuid>(source["LastUserId"]);
|
||||
m_dateLastActivity = Jellyfin::Support::fromJsonValue<QDateTime>(source["DateLastActivity"]);
|
||||
m_capabilities = Jellyfin::Support::fromJsonValue<QSharedPointer<ClientCapabilities>>(source["Capabilities"]);
|
||||
m_iconUrl = Jellyfin::Support::fromJsonValue<QString>(source["IconUrl"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject DeviceInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Id"] = Jellyfin::Support::toJsonValue<QString>(m_jellyfinId);
|
||||
result["LastUserName"] = Jellyfin::Support::toJsonValue<QString>(m_lastUserName);
|
||||
result["AppName"] = Jellyfin::Support::toJsonValue<QString>(m_appName);
|
||||
result["AppVersion"] = Jellyfin::Support::toJsonValue<QString>(m_appVersion);
|
||||
result["LastUserId"] = Jellyfin::Support::toJsonValue<QUuid>(m_lastUserId);
|
||||
result["DateLastActivity"] = Jellyfin::Support::toJsonValue<QDateTime>(m_dateLastActivity);
|
||||
result["Capabilities"] = Jellyfin::Support::toJsonValue<QSharedPointer<ClientCapabilities>>(m_capabilities);
|
||||
result["IconUrl"] = Jellyfin::Support::toJsonValue<QString>(m_iconUrl);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString DeviceInfo::name() const { return m_name; }
|
||||
|
||||
void DeviceInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString DeviceInfo::jellyfinId() const { return m_jellyfinId; }
|
||||
|
||||
void DeviceInfo::setJellyfinId(QString newJellyfinId) {
|
||||
m_jellyfinId = newJellyfinId;
|
||||
}
|
||||
QString DeviceInfo::lastUserName() const { return m_lastUserName; }
|
||||
|
||||
void DeviceInfo::setLastUserName(QString newLastUserName) {
|
||||
m_lastUserName = newLastUserName;
|
||||
}
|
||||
QString DeviceInfo::appName() const { return m_appName; }
|
||||
|
||||
void DeviceInfo::setAppName(QString newAppName) {
|
||||
m_appName = newAppName;
|
||||
}
|
||||
QString DeviceInfo::appVersion() const { return m_appVersion; }
|
||||
|
||||
void DeviceInfo::setAppVersion(QString newAppVersion) {
|
||||
m_appVersion = newAppVersion;
|
||||
}
|
||||
QUuid DeviceInfo::lastUserId() const { return m_lastUserId; }
|
||||
|
||||
void DeviceInfo::setLastUserId(QUuid newLastUserId) {
|
||||
m_lastUserId = newLastUserId;
|
||||
}
|
||||
QDateTime DeviceInfo::dateLastActivity() const { return m_dateLastActivity; }
|
||||
|
||||
void DeviceInfo::setDateLastActivity(QDateTime newDateLastActivity) {
|
||||
m_dateLastActivity = newDateLastActivity;
|
||||
}
|
||||
QSharedPointer<ClientCapabilities> DeviceInfo::capabilities() const { return m_capabilities; }
|
||||
|
||||
void DeviceInfo::setCapabilities(QSharedPointer<ClientCapabilities> newCapabilities) {
|
||||
m_capabilities = newCapabilities;
|
||||
}
|
||||
QString DeviceInfo::iconUrl() const { return m_iconUrl; }
|
||||
|
||||
void DeviceInfo::setIconUrl(QString newIconUrl) {
|
||||
m_iconUrl = newIconUrl;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceInfo = Jellyfin::DTO::DeviceInfo;
|
||||
|
||||
template <>
|
||||
DeviceInfo fromJsonValue<DeviceInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return DeviceInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/deviceinfoqueryresult.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DeviceInfoQueryResult::DeviceInfoQueryResult() {}
|
||||
DeviceInfoQueryResult::DeviceInfoQueryResult(const DeviceInfoQueryResult &other) :
|
||||
m_items(other.m_items),
|
||||
m_totalRecordCount(other.m_totalRecordCount),
|
||||
m_startIndex(other.m_startIndex){}
|
||||
|
||||
DeviceInfoQueryResult DeviceInfoQueryResult::fromJson(QJsonObject source) {
|
||||
DeviceInfoQueryResult instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void DeviceInfoQueryResult::setFromJson(QJsonObject source) {
|
||||
m_items = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<DeviceInfo>>>(source["Items"]);
|
||||
m_totalRecordCount = Jellyfin::Support::fromJsonValue<qint32>(source["TotalRecordCount"]);
|
||||
m_startIndex = Jellyfin::Support::fromJsonValue<qint32>(source["StartIndex"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject DeviceInfoQueryResult::toJson() {
|
||||
QJsonObject result;
|
||||
result["Items"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<DeviceInfo>>>(m_items);
|
||||
result["TotalRecordCount"] = Jellyfin::Support::toJsonValue<qint32>(m_totalRecordCount);
|
||||
result["StartIndex"] = Jellyfin::Support::toJsonValue<qint32>(m_startIndex);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QList<QSharedPointer<DeviceInfo>> DeviceInfoQueryResult::items() const { return m_items; }
|
||||
|
||||
void DeviceInfoQueryResult::setItems(QList<QSharedPointer<DeviceInfo>> newItems) {
|
||||
m_items = newItems;
|
||||
}
|
||||
qint32 DeviceInfoQueryResult::totalRecordCount() const { return m_totalRecordCount; }
|
||||
|
||||
void DeviceInfoQueryResult::setTotalRecordCount(qint32 newTotalRecordCount) {
|
||||
m_totalRecordCount = newTotalRecordCount;
|
||||
}
|
||||
qint32 DeviceInfoQueryResult::startIndex() const { return m_startIndex; }
|
||||
|
||||
void DeviceInfoQueryResult::setStartIndex(qint32 newStartIndex) {
|
||||
m_startIndex = newStartIndex;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceInfoQueryResult = Jellyfin::DTO::DeviceInfoQueryResult;
|
||||
|
||||
template <>
|
||||
DeviceInfoQueryResult fromJsonValue<DeviceInfoQueryResult>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return DeviceInfoQueryResult::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/deviceoptions.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DeviceOptions::DeviceOptions() {}
|
||||
DeviceOptions::DeviceOptions(const DeviceOptions &other) :
|
||||
m_customName(other.m_customName){}
|
||||
|
||||
DeviceOptions DeviceOptions::fromJson(QJsonObject source) {
|
||||
DeviceOptions instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void DeviceOptions::setFromJson(QJsonObject source) {
|
||||
m_customName = Jellyfin::Support::fromJsonValue<QString>(source["CustomName"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject DeviceOptions::toJson() {
|
||||
QJsonObject result;
|
||||
result["CustomName"] = Jellyfin::Support::toJsonValue<QString>(m_customName);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString DeviceOptions::customName() const { return m_customName; }
|
||||
|
||||
void DeviceOptions::setCustomName(QString newCustomName) {
|
||||
m_customName = newCustomName;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceOptions = Jellyfin::DTO::DeviceOptions;
|
||||
|
||||
template <>
|
||||
DeviceOptions fromJsonValue<DeviceOptions>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return DeviceOptions::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,381 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/deviceprofile.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DeviceProfile::DeviceProfile() {}
|
||||
DeviceProfile::DeviceProfile(const DeviceProfile &other) :
|
||||
m_name(other.m_name),
|
||||
m_jellyfinId(other.m_jellyfinId),
|
||||
m_identification(other.m_identification),
|
||||
m_friendlyName(other.m_friendlyName),
|
||||
m_manufacturer(other.m_manufacturer),
|
||||
m_manufacturerUrl(other.m_manufacturerUrl),
|
||||
m_modelName(other.m_modelName),
|
||||
m_modelDescription(other.m_modelDescription),
|
||||
m_modelNumber(other.m_modelNumber),
|
||||
m_modelUrl(other.m_modelUrl),
|
||||
m_serialNumber(other.m_serialNumber),
|
||||
m_enableAlbumArtInDidl(other.m_enableAlbumArtInDidl),
|
||||
m_enableSingleAlbumArtLimit(other.m_enableSingleAlbumArtLimit),
|
||||
m_enableSingleSubtitleLimit(other.m_enableSingleSubtitleLimit),
|
||||
m_supportedMediaTypes(other.m_supportedMediaTypes),
|
||||
m_userId(other.m_userId),
|
||||
m_albumArtPn(other.m_albumArtPn),
|
||||
m_maxAlbumArtWidth(other.m_maxAlbumArtWidth),
|
||||
m_maxAlbumArtHeight(other.m_maxAlbumArtHeight),
|
||||
m_maxIconWidth(other.m_maxIconWidth),
|
||||
m_maxIconHeight(other.m_maxIconHeight),
|
||||
m_maxStreamingBitrate(other.m_maxStreamingBitrate),
|
||||
m_maxStaticBitrate(other.m_maxStaticBitrate),
|
||||
m_musicStreamingTranscodingBitrate(other.m_musicStreamingTranscodingBitrate),
|
||||
m_maxStaticMusicBitrate(other.m_maxStaticMusicBitrate),
|
||||
m_sonyAggregationFlags(other.m_sonyAggregationFlags),
|
||||
m_protocolInfo(other.m_protocolInfo),
|
||||
m_timelineOffsetSeconds(other.m_timelineOffsetSeconds),
|
||||
m_requiresPlainVideoItems(other.m_requiresPlainVideoItems),
|
||||
m_requiresPlainFolders(other.m_requiresPlainFolders),
|
||||
m_enableMSMediaReceiverRegistrar(other.m_enableMSMediaReceiverRegistrar),
|
||||
m_ignoreTranscodeByteRangeRequests(other.m_ignoreTranscodeByteRangeRequests),
|
||||
m_xmlRootAttributes(other.m_xmlRootAttributes),
|
||||
m_directPlayProfiles(other.m_directPlayProfiles),
|
||||
m_transcodingProfiles(other.m_transcodingProfiles),
|
||||
m_containerProfiles(other.m_containerProfiles),
|
||||
m_codecProfiles(other.m_codecProfiles),
|
||||
m_responseProfiles(other.m_responseProfiles),
|
||||
m_subtitleProfiles(other.m_subtitleProfiles){}
|
||||
|
||||
DeviceProfile DeviceProfile::fromJson(QJsonObject source) {
|
||||
DeviceProfile instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void DeviceProfile::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_jellyfinId = Jellyfin::Support::fromJsonValue<QString>(source["Id"]);
|
||||
m_identification = Jellyfin::Support::fromJsonValue<QSharedPointer<DeviceIdentification>>(source["Identification"]);
|
||||
m_friendlyName = Jellyfin::Support::fromJsonValue<QString>(source["FriendlyName"]);
|
||||
m_manufacturer = Jellyfin::Support::fromJsonValue<QString>(source["Manufacturer"]);
|
||||
m_manufacturerUrl = Jellyfin::Support::fromJsonValue<QString>(source["ManufacturerUrl"]);
|
||||
m_modelName = Jellyfin::Support::fromJsonValue<QString>(source["ModelName"]);
|
||||
m_modelDescription = Jellyfin::Support::fromJsonValue<QString>(source["ModelDescription"]);
|
||||
m_modelNumber = Jellyfin::Support::fromJsonValue<QString>(source["ModelNumber"]);
|
||||
m_modelUrl = Jellyfin::Support::fromJsonValue<QString>(source["ModelUrl"]);
|
||||
m_serialNumber = Jellyfin::Support::fromJsonValue<QString>(source["SerialNumber"]);
|
||||
m_enableAlbumArtInDidl = Jellyfin::Support::fromJsonValue<bool>(source["EnableAlbumArtInDidl"]);
|
||||
m_enableSingleAlbumArtLimit = Jellyfin::Support::fromJsonValue<bool>(source["EnableSingleAlbumArtLimit"]);
|
||||
m_enableSingleSubtitleLimit = Jellyfin::Support::fromJsonValue<bool>(source["EnableSingleSubtitleLimit"]);
|
||||
m_supportedMediaTypes = Jellyfin::Support::fromJsonValue<QString>(source["SupportedMediaTypes"]);
|
||||
m_userId = Jellyfin::Support::fromJsonValue<QString>(source["UserId"]);
|
||||
m_albumArtPn = Jellyfin::Support::fromJsonValue<QString>(source["AlbumArtPn"]);
|
||||
m_maxAlbumArtWidth = Jellyfin::Support::fromJsonValue<qint32>(source["MaxAlbumArtWidth"]);
|
||||
m_maxAlbumArtHeight = Jellyfin::Support::fromJsonValue<qint32>(source["MaxAlbumArtHeight"]);
|
||||
m_maxIconWidth = Jellyfin::Support::fromJsonValue<qint32>(source["MaxIconWidth"]);
|
||||
m_maxIconHeight = Jellyfin::Support::fromJsonValue<qint32>(source["MaxIconHeight"]);
|
||||
m_maxStreamingBitrate = Jellyfin::Support::fromJsonValue<qint32>(source["MaxStreamingBitrate"]);
|
||||
m_maxStaticBitrate = Jellyfin::Support::fromJsonValue<qint32>(source["MaxStaticBitrate"]);
|
||||
m_musicStreamingTranscodingBitrate = Jellyfin::Support::fromJsonValue<qint32>(source["MusicStreamingTranscodingBitrate"]);
|
||||
m_maxStaticMusicBitrate = Jellyfin::Support::fromJsonValue<qint32>(source["MaxStaticMusicBitrate"]);
|
||||
m_sonyAggregationFlags = Jellyfin::Support::fromJsonValue<QString>(source["SonyAggregationFlags"]);
|
||||
m_protocolInfo = Jellyfin::Support::fromJsonValue<QString>(source["ProtocolInfo"]);
|
||||
m_timelineOffsetSeconds = Jellyfin::Support::fromJsonValue<qint32>(source["TimelineOffsetSeconds"]);
|
||||
m_requiresPlainVideoItems = Jellyfin::Support::fromJsonValue<bool>(source["RequiresPlainVideoItems"]);
|
||||
m_requiresPlainFolders = Jellyfin::Support::fromJsonValue<bool>(source["RequiresPlainFolders"]);
|
||||
m_enableMSMediaReceiverRegistrar = Jellyfin::Support::fromJsonValue<bool>(source["EnableMSMediaReceiverRegistrar"]);
|
||||
m_ignoreTranscodeByteRangeRequests = Jellyfin::Support::fromJsonValue<bool>(source["IgnoreTranscodeByteRangeRequests"]);
|
||||
m_xmlRootAttributes = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<XmlAttribute>>>(source["XmlRootAttributes"]);
|
||||
m_directPlayProfiles = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<DirectPlayProfile>>>(source["DirectPlayProfiles"]);
|
||||
m_transcodingProfiles = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<TranscodingProfile>>>(source["TranscodingProfiles"]);
|
||||
m_containerProfiles = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<ContainerProfile>>>(source["ContainerProfiles"]);
|
||||
m_codecProfiles = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<CodecProfile>>>(source["CodecProfiles"]);
|
||||
m_responseProfiles = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<ResponseProfile>>>(source["ResponseProfiles"]);
|
||||
m_subtitleProfiles = Jellyfin::Support::fromJsonValue<QList<QSharedPointer<SubtitleProfile>>>(source["SubtitleProfiles"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject DeviceProfile::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Id"] = Jellyfin::Support::toJsonValue<QString>(m_jellyfinId);
|
||||
result["Identification"] = Jellyfin::Support::toJsonValue<QSharedPointer<DeviceIdentification>>(m_identification);
|
||||
result["FriendlyName"] = Jellyfin::Support::toJsonValue<QString>(m_friendlyName);
|
||||
result["Manufacturer"] = Jellyfin::Support::toJsonValue<QString>(m_manufacturer);
|
||||
result["ManufacturerUrl"] = Jellyfin::Support::toJsonValue<QString>(m_manufacturerUrl);
|
||||
result["ModelName"] = Jellyfin::Support::toJsonValue<QString>(m_modelName);
|
||||
result["ModelDescription"] = Jellyfin::Support::toJsonValue<QString>(m_modelDescription);
|
||||
result["ModelNumber"] = Jellyfin::Support::toJsonValue<QString>(m_modelNumber);
|
||||
result["ModelUrl"] = Jellyfin::Support::toJsonValue<QString>(m_modelUrl);
|
||||
result["SerialNumber"] = Jellyfin::Support::toJsonValue<QString>(m_serialNumber);
|
||||
result["EnableAlbumArtInDidl"] = Jellyfin::Support::toJsonValue<bool>(m_enableAlbumArtInDidl);
|
||||
result["EnableSingleAlbumArtLimit"] = Jellyfin::Support::toJsonValue<bool>(m_enableSingleAlbumArtLimit);
|
||||
result["EnableSingleSubtitleLimit"] = Jellyfin::Support::toJsonValue<bool>(m_enableSingleSubtitleLimit);
|
||||
result["SupportedMediaTypes"] = Jellyfin::Support::toJsonValue<QString>(m_supportedMediaTypes);
|
||||
result["UserId"] = Jellyfin::Support::toJsonValue<QString>(m_userId);
|
||||
result["AlbumArtPn"] = Jellyfin::Support::toJsonValue<QString>(m_albumArtPn);
|
||||
result["MaxAlbumArtWidth"] = Jellyfin::Support::toJsonValue<qint32>(m_maxAlbumArtWidth);
|
||||
result["MaxAlbumArtHeight"] = Jellyfin::Support::toJsonValue<qint32>(m_maxAlbumArtHeight);
|
||||
result["MaxIconWidth"] = Jellyfin::Support::toJsonValue<qint32>(m_maxIconWidth);
|
||||
result["MaxIconHeight"] = Jellyfin::Support::toJsonValue<qint32>(m_maxIconHeight);
|
||||
result["MaxStreamingBitrate"] = Jellyfin::Support::toJsonValue<qint32>(m_maxStreamingBitrate);
|
||||
result["MaxStaticBitrate"] = Jellyfin::Support::toJsonValue<qint32>(m_maxStaticBitrate);
|
||||
result["MusicStreamingTranscodingBitrate"] = Jellyfin::Support::toJsonValue<qint32>(m_musicStreamingTranscodingBitrate);
|
||||
result["MaxStaticMusicBitrate"] = Jellyfin::Support::toJsonValue<qint32>(m_maxStaticMusicBitrate);
|
||||
result["SonyAggregationFlags"] = Jellyfin::Support::toJsonValue<QString>(m_sonyAggregationFlags);
|
||||
result["ProtocolInfo"] = Jellyfin::Support::toJsonValue<QString>(m_protocolInfo);
|
||||
result["TimelineOffsetSeconds"] = Jellyfin::Support::toJsonValue<qint32>(m_timelineOffsetSeconds);
|
||||
result["RequiresPlainVideoItems"] = Jellyfin::Support::toJsonValue<bool>(m_requiresPlainVideoItems);
|
||||
result["RequiresPlainFolders"] = Jellyfin::Support::toJsonValue<bool>(m_requiresPlainFolders);
|
||||
result["EnableMSMediaReceiverRegistrar"] = Jellyfin::Support::toJsonValue<bool>(m_enableMSMediaReceiverRegistrar);
|
||||
result["IgnoreTranscodeByteRangeRequests"] = Jellyfin::Support::toJsonValue<bool>(m_ignoreTranscodeByteRangeRequests);
|
||||
result["XmlRootAttributes"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<XmlAttribute>>>(m_xmlRootAttributes);
|
||||
result["DirectPlayProfiles"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<DirectPlayProfile>>>(m_directPlayProfiles);
|
||||
result["TranscodingProfiles"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<TranscodingProfile>>>(m_transcodingProfiles);
|
||||
result["ContainerProfiles"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<ContainerProfile>>>(m_containerProfiles);
|
||||
result["CodecProfiles"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<CodecProfile>>>(m_codecProfiles);
|
||||
result["ResponseProfiles"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<ResponseProfile>>>(m_responseProfiles);
|
||||
result["SubtitleProfiles"] = Jellyfin::Support::toJsonValue<QList<QSharedPointer<SubtitleProfile>>>(m_subtitleProfiles);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString DeviceProfile::name() const { return m_name; }
|
||||
|
||||
void DeviceProfile::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString DeviceProfile::jellyfinId() const { return m_jellyfinId; }
|
||||
|
||||
void DeviceProfile::setJellyfinId(QString newJellyfinId) {
|
||||
m_jellyfinId = newJellyfinId;
|
||||
}
|
||||
QSharedPointer<DeviceIdentification> DeviceProfile::identification() const { return m_identification; }
|
||||
|
||||
void DeviceProfile::setIdentification(QSharedPointer<DeviceIdentification> newIdentification) {
|
||||
m_identification = newIdentification;
|
||||
}
|
||||
QString DeviceProfile::friendlyName() const { return m_friendlyName; }
|
||||
|
||||
void DeviceProfile::setFriendlyName(QString newFriendlyName) {
|
||||
m_friendlyName = newFriendlyName;
|
||||
}
|
||||
QString DeviceProfile::manufacturer() const { return m_manufacturer; }
|
||||
|
||||
void DeviceProfile::setManufacturer(QString newManufacturer) {
|
||||
m_manufacturer = newManufacturer;
|
||||
}
|
||||
QString DeviceProfile::manufacturerUrl() const { return m_manufacturerUrl; }
|
||||
|
||||
void DeviceProfile::setManufacturerUrl(QString newManufacturerUrl) {
|
||||
m_manufacturerUrl = newManufacturerUrl;
|
||||
}
|
||||
QString DeviceProfile::modelName() const { return m_modelName; }
|
||||
|
||||
void DeviceProfile::setModelName(QString newModelName) {
|
||||
m_modelName = newModelName;
|
||||
}
|
||||
QString DeviceProfile::modelDescription() const { return m_modelDescription; }
|
||||
|
||||
void DeviceProfile::setModelDescription(QString newModelDescription) {
|
||||
m_modelDescription = newModelDescription;
|
||||
}
|
||||
QString DeviceProfile::modelNumber() const { return m_modelNumber; }
|
||||
|
||||
void DeviceProfile::setModelNumber(QString newModelNumber) {
|
||||
m_modelNumber = newModelNumber;
|
||||
}
|
||||
QString DeviceProfile::modelUrl() const { return m_modelUrl; }
|
||||
|
||||
void DeviceProfile::setModelUrl(QString newModelUrl) {
|
||||
m_modelUrl = newModelUrl;
|
||||
}
|
||||
QString DeviceProfile::serialNumber() const { return m_serialNumber; }
|
||||
|
||||
void DeviceProfile::setSerialNumber(QString newSerialNumber) {
|
||||
m_serialNumber = newSerialNumber;
|
||||
}
|
||||
bool DeviceProfile::enableAlbumArtInDidl() const { return m_enableAlbumArtInDidl; }
|
||||
|
||||
void DeviceProfile::setEnableAlbumArtInDidl(bool newEnableAlbumArtInDidl) {
|
||||
m_enableAlbumArtInDidl = newEnableAlbumArtInDidl;
|
||||
}
|
||||
bool DeviceProfile::enableSingleAlbumArtLimit() const { return m_enableSingleAlbumArtLimit; }
|
||||
|
||||
void DeviceProfile::setEnableSingleAlbumArtLimit(bool newEnableSingleAlbumArtLimit) {
|
||||
m_enableSingleAlbumArtLimit = newEnableSingleAlbumArtLimit;
|
||||
}
|
||||
bool DeviceProfile::enableSingleSubtitleLimit() const { return m_enableSingleSubtitleLimit; }
|
||||
|
||||
void DeviceProfile::setEnableSingleSubtitleLimit(bool newEnableSingleSubtitleLimit) {
|
||||
m_enableSingleSubtitleLimit = newEnableSingleSubtitleLimit;
|
||||
}
|
||||
QString DeviceProfile::supportedMediaTypes() const { return m_supportedMediaTypes; }
|
||||
|
||||
void DeviceProfile::setSupportedMediaTypes(QString newSupportedMediaTypes) {
|
||||
m_supportedMediaTypes = newSupportedMediaTypes;
|
||||
}
|
||||
QString DeviceProfile::userId() const { return m_userId; }
|
||||
|
||||
void DeviceProfile::setUserId(QString newUserId) {
|
||||
m_userId = newUserId;
|
||||
}
|
||||
QString DeviceProfile::albumArtPn() const { return m_albumArtPn; }
|
||||
|
||||
void DeviceProfile::setAlbumArtPn(QString newAlbumArtPn) {
|
||||
m_albumArtPn = newAlbumArtPn;
|
||||
}
|
||||
qint32 DeviceProfile::maxAlbumArtWidth() const { return m_maxAlbumArtWidth; }
|
||||
|
||||
void DeviceProfile::setMaxAlbumArtWidth(qint32 newMaxAlbumArtWidth) {
|
||||
m_maxAlbumArtWidth = newMaxAlbumArtWidth;
|
||||
}
|
||||
qint32 DeviceProfile::maxAlbumArtHeight() const { return m_maxAlbumArtHeight; }
|
||||
|
||||
void DeviceProfile::setMaxAlbumArtHeight(qint32 newMaxAlbumArtHeight) {
|
||||
m_maxAlbumArtHeight = newMaxAlbumArtHeight;
|
||||
}
|
||||
qint32 DeviceProfile::maxIconWidth() const { return m_maxIconWidth; }
|
||||
|
||||
void DeviceProfile::setMaxIconWidth(qint32 newMaxIconWidth) {
|
||||
m_maxIconWidth = newMaxIconWidth;
|
||||
}
|
||||
qint32 DeviceProfile::maxIconHeight() const { return m_maxIconHeight; }
|
||||
|
||||
void DeviceProfile::setMaxIconHeight(qint32 newMaxIconHeight) {
|
||||
m_maxIconHeight = newMaxIconHeight;
|
||||
}
|
||||
qint32 DeviceProfile::maxStreamingBitrate() const { return m_maxStreamingBitrate; }
|
||||
|
||||
void DeviceProfile::setMaxStreamingBitrate(qint32 newMaxStreamingBitrate) {
|
||||
m_maxStreamingBitrate = newMaxStreamingBitrate;
|
||||
}
|
||||
qint32 DeviceProfile::maxStaticBitrate() const { return m_maxStaticBitrate; }
|
||||
|
||||
void DeviceProfile::setMaxStaticBitrate(qint32 newMaxStaticBitrate) {
|
||||
m_maxStaticBitrate = newMaxStaticBitrate;
|
||||
}
|
||||
qint32 DeviceProfile::musicStreamingTranscodingBitrate() const { return m_musicStreamingTranscodingBitrate; }
|
||||
|
||||
void DeviceProfile::setMusicStreamingTranscodingBitrate(qint32 newMusicStreamingTranscodingBitrate) {
|
||||
m_musicStreamingTranscodingBitrate = newMusicStreamingTranscodingBitrate;
|
||||
}
|
||||
qint32 DeviceProfile::maxStaticMusicBitrate() const { return m_maxStaticMusicBitrate; }
|
||||
|
||||
void DeviceProfile::setMaxStaticMusicBitrate(qint32 newMaxStaticMusicBitrate) {
|
||||
m_maxStaticMusicBitrate = newMaxStaticMusicBitrate;
|
||||
}
|
||||
QString DeviceProfile::sonyAggregationFlags() const { return m_sonyAggregationFlags; }
|
||||
|
||||
void DeviceProfile::setSonyAggregationFlags(QString newSonyAggregationFlags) {
|
||||
m_sonyAggregationFlags = newSonyAggregationFlags;
|
||||
}
|
||||
QString DeviceProfile::protocolInfo() const { return m_protocolInfo; }
|
||||
|
||||
void DeviceProfile::setProtocolInfo(QString newProtocolInfo) {
|
||||
m_protocolInfo = newProtocolInfo;
|
||||
}
|
||||
qint32 DeviceProfile::timelineOffsetSeconds() const { return m_timelineOffsetSeconds; }
|
||||
|
||||
void DeviceProfile::setTimelineOffsetSeconds(qint32 newTimelineOffsetSeconds) {
|
||||
m_timelineOffsetSeconds = newTimelineOffsetSeconds;
|
||||
}
|
||||
bool DeviceProfile::requiresPlainVideoItems() const { return m_requiresPlainVideoItems; }
|
||||
|
||||
void DeviceProfile::setRequiresPlainVideoItems(bool newRequiresPlainVideoItems) {
|
||||
m_requiresPlainVideoItems = newRequiresPlainVideoItems;
|
||||
}
|
||||
bool DeviceProfile::requiresPlainFolders() const { return m_requiresPlainFolders; }
|
||||
|
||||
void DeviceProfile::setRequiresPlainFolders(bool newRequiresPlainFolders) {
|
||||
m_requiresPlainFolders = newRequiresPlainFolders;
|
||||
}
|
||||
bool DeviceProfile::enableMSMediaReceiverRegistrar() const { return m_enableMSMediaReceiverRegistrar; }
|
||||
|
||||
void DeviceProfile::setEnableMSMediaReceiverRegistrar(bool newEnableMSMediaReceiverRegistrar) {
|
||||
m_enableMSMediaReceiverRegistrar = newEnableMSMediaReceiverRegistrar;
|
||||
}
|
||||
bool DeviceProfile::ignoreTranscodeByteRangeRequests() const { return m_ignoreTranscodeByteRangeRequests; }
|
||||
|
||||
void DeviceProfile::setIgnoreTranscodeByteRangeRequests(bool newIgnoreTranscodeByteRangeRequests) {
|
||||
m_ignoreTranscodeByteRangeRequests = newIgnoreTranscodeByteRangeRequests;
|
||||
}
|
||||
QList<QSharedPointer<XmlAttribute>> DeviceProfile::xmlRootAttributes() const { return m_xmlRootAttributes; }
|
||||
|
||||
void DeviceProfile::setXmlRootAttributes(QList<QSharedPointer<XmlAttribute>> newXmlRootAttributes) {
|
||||
m_xmlRootAttributes = newXmlRootAttributes;
|
||||
}
|
||||
QList<QSharedPointer<DirectPlayProfile>> DeviceProfile::directPlayProfiles() const { return m_directPlayProfiles; }
|
||||
|
||||
void DeviceProfile::setDirectPlayProfiles(QList<QSharedPointer<DirectPlayProfile>> newDirectPlayProfiles) {
|
||||
m_directPlayProfiles = newDirectPlayProfiles;
|
||||
}
|
||||
QList<QSharedPointer<TranscodingProfile>> DeviceProfile::transcodingProfiles() const { return m_transcodingProfiles; }
|
||||
|
||||
void DeviceProfile::setTranscodingProfiles(QList<QSharedPointer<TranscodingProfile>> newTranscodingProfiles) {
|
||||
m_transcodingProfiles = newTranscodingProfiles;
|
||||
}
|
||||
QList<QSharedPointer<ContainerProfile>> DeviceProfile::containerProfiles() const { return m_containerProfiles; }
|
||||
|
||||
void DeviceProfile::setContainerProfiles(QList<QSharedPointer<ContainerProfile>> newContainerProfiles) {
|
||||
m_containerProfiles = newContainerProfiles;
|
||||
}
|
||||
QList<QSharedPointer<CodecProfile>> DeviceProfile::codecProfiles() const { return m_codecProfiles; }
|
||||
|
||||
void DeviceProfile::setCodecProfiles(QList<QSharedPointer<CodecProfile>> newCodecProfiles) {
|
||||
m_codecProfiles = newCodecProfiles;
|
||||
}
|
||||
QList<QSharedPointer<ResponseProfile>> DeviceProfile::responseProfiles() const { return m_responseProfiles; }
|
||||
|
||||
void DeviceProfile::setResponseProfiles(QList<QSharedPointer<ResponseProfile>> newResponseProfiles) {
|
||||
m_responseProfiles = newResponseProfiles;
|
||||
}
|
||||
QList<QSharedPointer<SubtitleProfile>> DeviceProfile::subtitleProfiles() const { return m_subtitleProfiles; }
|
||||
|
||||
void DeviceProfile::setSubtitleProfiles(QList<QSharedPointer<SubtitleProfile>> newSubtitleProfiles) {
|
||||
m_subtitleProfiles = newSubtitleProfiles;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceProfile = Jellyfin::DTO::DeviceProfile;
|
||||
|
||||
template <>
|
||||
DeviceProfile fromJsonValue<DeviceProfile>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return DeviceProfile::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/deviceprofileinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DeviceProfileInfo::DeviceProfileInfo() {}
|
||||
DeviceProfileInfo::DeviceProfileInfo(const DeviceProfileInfo &other) :
|
||||
m_jellyfinId(other.m_jellyfinId),
|
||||
m_name(other.m_name),
|
||||
m_type(other.m_type){}
|
||||
|
||||
DeviceProfileInfo DeviceProfileInfo::fromJson(QJsonObject source) {
|
||||
DeviceProfileInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void DeviceProfileInfo::setFromJson(QJsonObject source) {
|
||||
m_jellyfinId = Jellyfin::Support::fromJsonValue<QString>(source["Id"]);
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_type = Jellyfin::Support::fromJsonValue<DeviceProfileType>(source["Type"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject DeviceProfileInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Id"] = Jellyfin::Support::toJsonValue<QString>(m_jellyfinId);
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Type"] = Jellyfin::Support::toJsonValue<DeviceProfileType>(m_type);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString DeviceProfileInfo::jellyfinId() const { return m_jellyfinId; }
|
||||
|
||||
void DeviceProfileInfo::setJellyfinId(QString newJellyfinId) {
|
||||
m_jellyfinId = newJellyfinId;
|
||||
}
|
||||
QString DeviceProfileInfo::name() const { return m_name; }
|
||||
|
||||
void DeviceProfileInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
DeviceProfileType DeviceProfileInfo::type() const { return m_type; }
|
||||
|
||||
void DeviceProfileInfo::setType(DeviceProfileType newType) {
|
||||
m_type = newType;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceProfileInfo = Jellyfin::DTO::DeviceProfileInfo;
|
||||
|
||||
template <>
|
||||
DeviceProfileInfo fromJsonValue<DeviceProfileInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return DeviceProfileInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/deviceprofiletype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DeviceProfileTypeClass::DeviceProfileTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DeviceProfileType = Jellyfin::DTO::DeviceProfileType;
|
||||
|
||||
template <>
|
||||
DeviceProfileType fromJsonValue<DeviceProfileType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return DeviceProfileType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("System")) {
|
||||
return DeviceProfileType::System;
|
||||
}
|
||||
if (str == QStringLiteral("User")) {
|
||||
return DeviceProfileType::User;
|
||||
}
|
||||
|
||||
return DeviceProfileType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/directplayprofile.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DirectPlayProfile::DirectPlayProfile() {}
|
||||
DirectPlayProfile::DirectPlayProfile(const DirectPlayProfile &other) :
|
||||
m_container(other.m_container),
|
||||
m_audioCodec(other.m_audioCodec),
|
||||
m_videoCodec(other.m_videoCodec),
|
||||
m_type(other.m_type){}
|
||||
|
||||
DirectPlayProfile DirectPlayProfile::fromJson(QJsonObject source) {
|
||||
DirectPlayProfile instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void DirectPlayProfile::setFromJson(QJsonObject source) {
|
||||
m_container = Jellyfin::Support::fromJsonValue<QString>(source["Container"]);
|
||||
m_audioCodec = Jellyfin::Support::fromJsonValue<QString>(source["AudioCodec"]);
|
||||
m_videoCodec = Jellyfin::Support::fromJsonValue<QString>(source["VideoCodec"]);
|
||||
m_type = Jellyfin::Support::fromJsonValue<DlnaProfileType>(source["Type"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject DirectPlayProfile::toJson() {
|
||||
QJsonObject result;
|
||||
result["Container"] = Jellyfin::Support::toJsonValue<QString>(m_container);
|
||||
result["AudioCodec"] = Jellyfin::Support::toJsonValue<QString>(m_audioCodec);
|
||||
result["VideoCodec"] = Jellyfin::Support::toJsonValue<QString>(m_videoCodec);
|
||||
result["Type"] = Jellyfin::Support::toJsonValue<DlnaProfileType>(m_type);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString DirectPlayProfile::container() const { return m_container; }
|
||||
|
||||
void DirectPlayProfile::setContainer(QString newContainer) {
|
||||
m_container = newContainer;
|
||||
}
|
||||
QString DirectPlayProfile::audioCodec() const { return m_audioCodec; }
|
||||
|
||||
void DirectPlayProfile::setAudioCodec(QString newAudioCodec) {
|
||||
m_audioCodec = newAudioCodec;
|
||||
}
|
||||
QString DirectPlayProfile::videoCodec() const { return m_videoCodec; }
|
||||
|
||||
void DirectPlayProfile::setVideoCodec(QString newVideoCodec) {
|
||||
m_videoCodec = newVideoCodec;
|
||||
}
|
||||
DlnaProfileType DirectPlayProfile::type() const { return m_type; }
|
||||
|
||||
void DirectPlayProfile::setType(DlnaProfileType newType) {
|
||||
m_type = newType;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DirectPlayProfile = Jellyfin::DTO::DirectPlayProfile;
|
||||
|
||||
template <>
|
||||
DirectPlayProfile fromJsonValue<DirectPlayProfile>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return DirectPlayProfile::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,181 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/displaypreferencesdto.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DisplayPreferencesDto::DisplayPreferencesDto() {}
|
||||
DisplayPreferencesDto::DisplayPreferencesDto(const DisplayPreferencesDto &other) :
|
||||
m_jellyfinId(other.m_jellyfinId),
|
||||
m_viewType(other.m_viewType),
|
||||
m_sortBy(other.m_sortBy),
|
||||
m_indexBy(other.m_indexBy),
|
||||
m_rememberIndexing(other.m_rememberIndexing),
|
||||
m_primaryImageHeight(other.m_primaryImageHeight),
|
||||
m_primaryImageWidth(other.m_primaryImageWidth),
|
||||
m_customPrefs(other.m_customPrefs),
|
||||
m_scrollDirection(other.m_scrollDirection),
|
||||
m_showBackdrop(other.m_showBackdrop),
|
||||
m_rememberSorting(other.m_rememberSorting),
|
||||
m_sortOrder(other.m_sortOrder),
|
||||
m_showSidebar(other.m_showSidebar),
|
||||
m_client(other.m_client){}
|
||||
|
||||
DisplayPreferencesDto DisplayPreferencesDto::fromJson(QJsonObject source) {
|
||||
DisplayPreferencesDto instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void DisplayPreferencesDto::setFromJson(QJsonObject source) {
|
||||
m_jellyfinId = Jellyfin::Support::fromJsonValue<QString>(source["Id"]);
|
||||
m_viewType = Jellyfin::Support::fromJsonValue<QString>(source["ViewType"]);
|
||||
m_sortBy = Jellyfin::Support::fromJsonValue<QString>(source["SortBy"]);
|
||||
m_indexBy = Jellyfin::Support::fromJsonValue<QString>(source["IndexBy"]);
|
||||
m_rememberIndexing = Jellyfin::Support::fromJsonValue<bool>(source["RememberIndexing"]);
|
||||
m_primaryImageHeight = Jellyfin::Support::fromJsonValue<qint32>(source["PrimaryImageHeight"]);
|
||||
m_primaryImageWidth = Jellyfin::Support::fromJsonValue<qint32>(source["PrimaryImageWidth"]);
|
||||
m_customPrefs = Jellyfin::Support::fromJsonValue<QJsonObject>(source["CustomPrefs"]);
|
||||
m_scrollDirection = Jellyfin::Support::fromJsonValue<ScrollDirection>(source["ScrollDirection"]);
|
||||
m_showBackdrop = Jellyfin::Support::fromJsonValue<bool>(source["ShowBackdrop"]);
|
||||
m_rememberSorting = Jellyfin::Support::fromJsonValue<bool>(source["RememberSorting"]);
|
||||
m_sortOrder = Jellyfin::Support::fromJsonValue<SortOrder>(source["SortOrder"]);
|
||||
m_showSidebar = Jellyfin::Support::fromJsonValue<bool>(source["ShowSidebar"]);
|
||||
m_client = Jellyfin::Support::fromJsonValue<QString>(source["Client"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject DisplayPreferencesDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["Id"] = Jellyfin::Support::toJsonValue<QString>(m_jellyfinId);
|
||||
result["ViewType"] = Jellyfin::Support::toJsonValue<QString>(m_viewType);
|
||||
result["SortBy"] = Jellyfin::Support::toJsonValue<QString>(m_sortBy);
|
||||
result["IndexBy"] = Jellyfin::Support::toJsonValue<QString>(m_indexBy);
|
||||
result["RememberIndexing"] = Jellyfin::Support::toJsonValue<bool>(m_rememberIndexing);
|
||||
result["PrimaryImageHeight"] = Jellyfin::Support::toJsonValue<qint32>(m_primaryImageHeight);
|
||||
result["PrimaryImageWidth"] = Jellyfin::Support::toJsonValue<qint32>(m_primaryImageWidth);
|
||||
result["CustomPrefs"] = Jellyfin::Support::toJsonValue<QJsonObject>(m_customPrefs);
|
||||
result["ScrollDirection"] = Jellyfin::Support::toJsonValue<ScrollDirection>(m_scrollDirection);
|
||||
result["ShowBackdrop"] = Jellyfin::Support::toJsonValue<bool>(m_showBackdrop);
|
||||
result["RememberSorting"] = Jellyfin::Support::toJsonValue<bool>(m_rememberSorting);
|
||||
result["SortOrder"] = Jellyfin::Support::toJsonValue<SortOrder>(m_sortOrder);
|
||||
result["ShowSidebar"] = Jellyfin::Support::toJsonValue<bool>(m_showSidebar);
|
||||
result["Client"] = Jellyfin::Support::toJsonValue<QString>(m_client);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString DisplayPreferencesDto::jellyfinId() const { return m_jellyfinId; }
|
||||
|
||||
void DisplayPreferencesDto::setJellyfinId(QString newJellyfinId) {
|
||||
m_jellyfinId = newJellyfinId;
|
||||
}
|
||||
QString DisplayPreferencesDto::viewType() const { return m_viewType; }
|
||||
|
||||
void DisplayPreferencesDto::setViewType(QString newViewType) {
|
||||
m_viewType = newViewType;
|
||||
}
|
||||
QString DisplayPreferencesDto::sortBy() const { return m_sortBy; }
|
||||
|
||||
void DisplayPreferencesDto::setSortBy(QString newSortBy) {
|
||||
m_sortBy = newSortBy;
|
||||
}
|
||||
QString DisplayPreferencesDto::indexBy() const { return m_indexBy; }
|
||||
|
||||
void DisplayPreferencesDto::setIndexBy(QString newIndexBy) {
|
||||
m_indexBy = newIndexBy;
|
||||
}
|
||||
bool DisplayPreferencesDto::rememberIndexing() const { return m_rememberIndexing; }
|
||||
|
||||
void DisplayPreferencesDto::setRememberIndexing(bool newRememberIndexing) {
|
||||
m_rememberIndexing = newRememberIndexing;
|
||||
}
|
||||
qint32 DisplayPreferencesDto::primaryImageHeight() const { return m_primaryImageHeight; }
|
||||
|
||||
void DisplayPreferencesDto::setPrimaryImageHeight(qint32 newPrimaryImageHeight) {
|
||||
m_primaryImageHeight = newPrimaryImageHeight;
|
||||
}
|
||||
qint32 DisplayPreferencesDto::primaryImageWidth() const { return m_primaryImageWidth; }
|
||||
|
||||
void DisplayPreferencesDto::setPrimaryImageWidth(qint32 newPrimaryImageWidth) {
|
||||
m_primaryImageWidth = newPrimaryImageWidth;
|
||||
}
|
||||
QJsonObject DisplayPreferencesDto::customPrefs() const { return m_customPrefs; }
|
||||
|
||||
void DisplayPreferencesDto::setCustomPrefs(QJsonObject newCustomPrefs) {
|
||||
m_customPrefs = newCustomPrefs;
|
||||
}
|
||||
ScrollDirection DisplayPreferencesDto::scrollDirection() const { return m_scrollDirection; }
|
||||
|
||||
void DisplayPreferencesDto::setScrollDirection(ScrollDirection newScrollDirection) {
|
||||
m_scrollDirection = newScrollDirection;
|
||||
}
|
||||
bool DisplayPreferencesDto::showBackdrop() const { return m_showBackdrop; }
|
||||
|
||||
void DisplayPreferencesDto::setShowBackdrop(bool newShowBackdrop) {
|
||||
m_showBackdrop = newShowBackdrop;
|
||||
}
|
||||
bool DisplayPreferencesDto::rememberSorting() const { return m_rememberSorting; }
|
||||
|
||||
void DisplayPreferencesDto::setRememberSorting(bool newRememberSorting) {
|
||||
m_rememberSorting = newRememberSorting;
|
||||
}
|
||||
SortOrder DisplayPreferencesDto::sortOrder() const { return m_sortOrder; }
|
||||
|
||||
void DisplayPreferencesDto::setSortOrder(SortOrder newSortOrder) {
|
||||
m_sortOrder = newSortOrder;
|
||||
}
|
||||
bool DisplayPreferencesDto::showSidebar() const { return m_showSidebar; }
|
||||
|
||||
void DisplayPreferencesDto::setShowSidebar(bool newShowSidebar) {
|
||||
m_showSidebar = newShowSidebar;
|
||||
}
|
||||
QString DisplayPreferencesDto::client() const { return m_client; }
|
||||
|
||||
void DisplayPreferencesDto::setClient(QString newClient) {
|
||||
m_client = newClient;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DisplayPreferencesDto = Jellyfin::DTO::DisplayPreferencesDto;
|
||||
|
||||
template <>
|
||||
DisplayPreferencesDto fromJsonValue<DisplayPreferencesDto>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return DisplayPreferencesDto::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/dlnaprofiletype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DlnaProfileTypeClass::DlnaProfileTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DlnaProfileType = Jellyfin::DTO::DlnaProfileType;
|
||||
|
||||
template <>
|
||||
DlnaProfileType fromJsonValue<DlnaProfileType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return DlnaProfileType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Audio")) {
|
||||
return DlnaProfileType::Audio;
|
||||
}
|
||||
if (str == QStringLiteral("Video")) {
|
||||
return DlnaProfileType::Video;
|
||||
}
|
||||
if (str == QStringLiteral("Photo")) {
|
||||
return DlnaProfileType::Photo;
|
||||
}
|
||||
|
||||
return DlnaProfileType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,84 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/dynamicdayofweek.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
DynamicDayOfWeekClass::DynamicDayOfWeekClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using DynamicDayOfWeek = Jellyfin::DTO::DynamicDayOfWeek;
|
||||
|
||||
template <>
|
||||
DynamicDayOfWeek fromJsonValue<DynamicDayOfWeek>(const QJsonValue &source) {
|
||||
if (!source.isString()) return DynamicDayOfWeek::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Sunday")) {
|
||||
return DynamicDayOfWeek::Sunday;
|
||||
}
|
||||
if (str == QStringLiteral("Monday")) {
|
||||
return DynamicDayOfWeek::Monday;
|
||||
}
|
||||
if (str == QStringLiteral("Tuesday")) {
|
||||
return DynamicDayOfWeek::Tuesday;
|
||||
}
|
||||
if (str == QStringLiteral("Wednesday")) {
|
||||
return DynamicDayOfWeek::Wednesday;
|
||||
}
|
||||
if (str == QStringLiteral("Thursday")) {
|
||||
return DynamicDayOfWeek::Thursday;
|
||||
}
|
||||
if (str == QStringLiteral("Friday")) {
|
||||
return DynamicDayOfWeek::Friday;
|
||||
}
|
||||
if (str == QStringLiteral("Saturday")) {
|
||||
return DynamicDayOfWeek::Saturday;
|
||||
}
|
||||
if (str == QStringLiteral("Everyday")) {
|
||||
return DynamicDayOfWeek::Everyday;
|
||||
}
|
||||
if (str == QStringLiteral("Weekday")) {
|
||||
return DynamicDayOfWeek::Weekday;
|
||||
}
|
||||
if (str == QStringLiteral("Weekend")) {
|
||||
return DynamicDayOfWeek::Weekend;
|
||||
}
|
||||
|
||||
return DynamicDayOfWeek::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/encodingcontext.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
EncodingContextClass::EncodingContextClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using EncodingContext = Jellyfin::DTO::EncodingContext;
|
||||
|
||||
template <>
|
||||
EncodingContext fromJsonValue<EncodingContext>(const QJsonValue &source) {
|
||||
if (!source.isString()) return EncodingContext::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Streaming")) {
|
||||
return EncodingContext::Streaming;
|
||||
}
|
||||
if (str == QStringLiteral("Static")) {
|
||||
return EncodingContext::Static;
|
||||
}
|
||||
|
||||
return EncodingContext::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,85 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/endpointinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
EndPointInfo::EndPointInfo() {}
|
||||
EndPointInfo::EndPointInfo(const EndPointInfo &other) :
|
||||
m_isLocal(other.m_isLocal),
|
||||
m_isInNetwork(other.m_isInNetwork){}
|
||||
|
||||
EndPointInfo EndPointInfo::fromJson(QJsonObject source) {
|
||||
EndPointInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void EndPointInfo::setFromJson(QJsonObject source) {
|
||||
m_isLocal = Jellyfin::Support::fromJsonValue<bool>(source["IsLocal"]);
|
||||
m_isInNetwork = Jellyfin::Support::fromJsonValue<bool>(source["IsInNetwork"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject EndPointInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["IsLocal"] = Jellyfin::Support::toJsonValue<bool>(m_isLocal);
|
||||
result["IsInNetwork"] = Jellyfin::Support::toJsonValue<bool>(m_isInNetwork);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
bool EndPointInfo::isLocal() const { return m_isLocal; }
|
||||
|
||||
void EndPointInfo::setIsLocal(bool newIsLocal) {
|
||||
m_isLocal = newIsLocal;
|
||||
}
|
||||
bool EndPointInfo::isInNetwork() const { return m_isInNetwork; }
|
||||
|
||||
void EndPointInfo::setIsInNetwork(bool newIsInNetwork) {
|
||||
m_isInNetwork = newIsInNetwork;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using EndPointInfo = Jellyfin::DTO::EndPointInfo;
|
||||
|
||||
template <>
|
||||
EndPointInfo fromJsonValue<EndPointInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return EndPointInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/externalidinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ExternalIdInfo::ExternalIdInfo() {}
|
||||
ExternalIdInfo::ExternalIdInfo(const ExternalIdInfo &other) :
|
||||
m_name(other.m_name),
|
||||
m_key(other.m_key),
|
||||
m_type(other.m_type),
|
||||
m_urlFormatString(other.m_urlFormatString){}
|
||||
|
||||
ExternalIdInfo ExternalIdInfo::fromJson(QJsonObject source) {
|
||||
ExternalIdInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ExternalIdInfo::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_key = Jellyfin::Support::fromJsonValue<QString>(source["Key"]);
|
||||
m_type = Jellyfin::Support::fromJsonValue<ExternalIdMediaType>(source["Type"]);
|
||||
m_urlFormatString = Jellyfin::Support::fromJsonValue<QString>(source["UrlFormatString"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ExternalIdInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Key"] = Jellyfin::Support::toJsonValue<QString>(m_key);
|
||||
result["Type"] = Jellyfin::Support::toJsonValue<ExternalIdMediaType>(m_type);
|
||||
result["UrlFormatString"] = Jellyfin::Support::toJsonValue<QString>(m_urlFormatString);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString ExternalIdInfo::name() const { return m_name; }
|
||||
|
||||
void ExternalIdInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString ExternalIdInfo::key() const { return m_key; }
|
||||
|
||||
void ExternalIdInfo::setKey(QString newKey) {
|
||||
m_key = newKey;
|
||||
}
|
||||
ExternalIdMediaType ExternalIdInfo::type() const { return m_type; }
|
||||
|
||||
void ExternalIdInfo::setType(ExternalIdMediaType newType) {
|
||||
m_type = newType;
|
||||
}
|
||||
QString ExternalIdInfo::urlFormatString() const { return m_urlFormatString; }
|
||||
|
||||
void ExternalIdInfo::setUrlFormatString(QString newUrlFormatString) {
|
||||
m_urlFormatString = newUrlFormatString;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ExternalIdInfo = Jellyfin::DTO::ExternalIdInfo;
|
||||
|
||||
template <>
|
||||
ExternalIdInfo fromJsonValue<ExternalIdInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ExternalIdInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/externalidmediatype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ExternalIdMediaTypeClass::ExternalIdMediaTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ExternalIdMediaType = Jellyfin::DTO::ExternalIdMediaType;
|
||||
|
||||
template <>
|
||||
ExternalIdMediaType fromJsonValue<ExternalIdMediaType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return ExternalIdMediaType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Album")) {
|
||||
return ExternalIdMediaType::Album;
|
||||
}
|
||||
if (str == QStringLiteral("AlbumArtist")) {
|
||||
return ExternalIdMediaType::AlbumArtist;
|
||||
}
|
||||
if (str == QStringLiteral("Artist")) {
|
||||
return ExternalIdMediaType::Artist;
|
||||
}
|
||||
if (str == QStringLiteral("BoxSet")) {
|
||||
return ExternalIdMediaType::BoxSet;
|
||||
}
|
||||
if (str == QStringLiteral("Episode")) {
|
||||
return ExternalIdMediaType::Episode;
|
||||
}
|
||||
if (str == QStringLiteral("Movie")) {
|
||||
return ExternalIdMediaType::Movie;
|
||||
}
|
||||
if (str == QStringLiteral("OtherArtist")) {
|
||||
return ExternalIdMediaType::OtherArtist;
|
||||
}
|
||||
if (str == QStringLiteral("Person")) {
|
||||
return ExternalIdMediaType::Person;
|
||||
}
|
||||
if (str == QStringLiteral("ReleaseGroup")) {
|
||||
return ExternalIdMediaType::ReleaseGroup;
|
||||
}
|
||||
if (str == QStringLiteral("Season")) {
|
||||
return ExternalIdMediaType::Season;
|
||||
}
|
||||
if (str == QStringLiteral("Series")) {
|
||||
return ExternalIdMediaType::Series;
|
||||
}
|
||||
if (str == QStringLiteral("Track")) {
|
||||
return ExternalIdMediaType::Track;
|
||||
}
|
||||
|
||||
return ExternalIdMediaType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,85 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/externalurl.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ExternalUrl::ExternalUrl() {}
|
||||
ExternalUrl::ExternalUrl(const ExternalUrl &other) :
|
||||
m_name(other.m_name),
|
||||
m_url(other.m_url){}
|
||||
|
||||
ExternalUrl ExternalUrl::fromJson(QJsonObject source) {
|
||||
ExternalUrl instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ExternalUrl::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_url = Jellyfin::Support::fromJsonValue<QString>(source["Url"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ExternalUrl::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Url"] = Jellyfin::Support::toJsonValue<QString>(m_url);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString ExternalUrl::name() const { return m_name; }
|
||||
|
||||
void ExternalUrl::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString ExternalUrl::url() const { return m_url; }
|
||||
|
||||
void ExternalUrl::setUrl(QString newUrl) {
|
||||
m_url = newUrl;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ExternalUrl = Jellyfin::DTO::ExternalUrl;
|
||||
|
||||
template <>
|
||||
ExternalUrl fromJsonValue<ExternalUrl>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ExternalUrl::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/ffmpeglocation.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
FFmpegLocationClass::FFmpegLocationClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using FFmpegLocation = Jellyfin::DTO::FFmpegLocation;
|
||||
|
||||
template <>
|
||||
FFmpegLocation fromJsonValue<FFmpegLocation>(const QJsonValue &source) {
|
||||
if (!source.isString()) return FFmpegLocation::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("NotFound")) {
|
||||
return FFmpegLocation::NotFound;
|
||||
}
|
||||
if (str == QStringLiteral("SetByArgument")) {
|
||||
return FFmpegLocation::SetByArgument;
|
||||
}
|
||||
if (str == QStringLiteral("Custom")) {
|
||||
return FFmpegLocation::Custom;
|
||||
}
|
||||
if (str == QStringLiteral("System")) {
|
||||
return FFmpegLocation::System;
|
||||
}
|
||||
|
||||
return FFmpegLocation::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/filesystementryinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
FileSystemEntryInfo::FileSystemEntryInfo() {}
|
||||
FileSystemEntryInfo::FileSystemEntryInfo(const FileSystemEntryInfo &other) :
|
||||
m_name(other.m_name),
|
||||
m_path(other.m_path),
|
||||
m_type(other.m_type){}
|
||||
|
||||
FileSystemEntryInfo FileSystemEntryInfo::fromJson(QJsonObject source) {
|
||||
FileSystemEntryInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void FileSystemEntryInfo::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_path = Jellyfin::Support::fromJsonValue<QString>(source["Path"]);
|
||||
m_type = Jellyfin::Support::fromJsonValue<FileSystemEntryType>(source["Type"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject FileSystemEntryInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Path"] = Jellyfin::Support::toJsonValue<QString>(m_path);
|
||||
result["Type"] = Jellyfin::Support::toJsonValue<FileSystemEntryType>(m_type);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString FileSystemEntryInfo::name() const { return m_name; }
|
||||
|
||||
void FileSystemEntryInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString FileSystemEntryInfo::path() const { return m_path; }
|
||||
|
||||
void FileSystemEntryInfo::setPath(QString newPath) {
|
||||
m_path = newPath;
|
||||
}
|
||||
FileSystemEntryType FileSystemEntryInfo::type() const { return m_type; }
|
||||
|
||||
void FileSystemEntryInfo::setType(FileSystemEntryType newType) {
|
||||
m_type = newType;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using FileSystemEntryInfo = Jellyfin::DTO::FileSystemEntryInfo;
|
||||
|
||||
template <>
|
||||
FileSystemEntryInfo fromJsonValue<FileSystemEntryInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return FileSystemEntryInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/filesystementrytype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
FileSystemEntryTypeClass::FileSystemEntryTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using FileSystemEntryType = Jellyfin::DTO::FileSystemEntryType;
|
||||
|
||||
template <>
|
||||
FileSystemEntryType fromJsonValue<FileSystemEntryType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return FileSystemEntryType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("File")) {
|
||||
return FileSystemEntryType::File;
|
||||
}
|
||||
if (str == QStringLiteral("Directory")) {
|
||||
return FileSystemEntryType::Directory;
|
||||
}
|
||||
if (str == QStringLiteral("NetworkComputer")) {
|
||||
return FileSystemEntryType::NetworkComputer;
|
||||
}
|
||||
if (str == QStringLiteral("NetworkShare")) {
|
||||
return FileSystemEntryType::NetworkShare;
|
||||
}
|
||||
|
||||
return FileSystemEntryType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/fontfile.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
FontFile::FontFile() {}
|
||||
FontFile::FontFile(const FontFile &other) :
|
||||
m_name(other.m_name),
|
||||
m_size(other.m_size),
|
||||
m_dateCreated(other.m_dateCreated),
|
||||
m_dateModified(other.m_dateModified){}
|
||||
|
||||
FontFile FontFile::fromJson(QJsonObject source) {
|
||||
FontFile instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void FontFile::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_size = Jellyfin::Support::fromJsonValue<qint64>(source["Size"]);
|
||||
m_dateCreated = Jellyfin::Support::fromJsonValue<QDateTime>(source["DateCreated"]);
|
||||
m_dateModified = Jellyfin::Support::fromJsonValue<QDateTime>(source["DateModified"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject FontFile::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Size"] = Jellyfin::Support::toJsonValue<qint64>(m_size);
|
||||
result["DateCreated"] = Jellyfin::Support::toJsonValue<QDateTime>(m_dateCreated);
|
||||
result["DateModified"] = Jellyfin::Support::toJsonValue<QDateTime>(m_dateModified);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString FontFile::name() const { return m_name; }
|
||||
|
||||
void FontFile::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
qint64 FontFile::size() const { return m_size; }
|
||||
|
||||
void FontFile::setSize(qint64 newSize) {
|
||||
m_size = newSize;
|
||||
}
|
||||
QDateTime FontFile::dateCreated() const { return m_dateCreated; }
|
||||
|
||||
void FontFile::setDateCreated(QDateTime newDateCreated) {
|
||||
m_dateCreated = newDateCreated;
|
||||
}
|
||||
QDateTime FontFile::dateModified() const { return m_dateModified; }
|
||||
|
||||
void FontFile::setDateModified(QDateTime newDateModified) {
|
||||
m_dateModified = newDateModified;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using FontFile = Jellyfin::DTO::FontFile;
|
||||
|
||||
template <>
|
||||
FontFile fromJsonValue<FontFile>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return FontFile::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/forgotpasswordaction.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ForgotPasswordActionClass::ForgotPasswordActionClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ForgotPasswordAction = Jellyfin::DTO::ForgotPasswordAction;
|
||||
|
||||
template <>
|
||||
ForgotPasswordAction fromJsonValue<ForgotPasswordAction>(const QJsonValue &source) {
|
||||
if (!source.isString()) return ForgotPasswordAction::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("ContactAdmin")) {
|
||||
return ForgotPasswordAction::ContactAdmin;
|
||||
}
|
||||
if (str == QStringLiteral("PinCode")) {
|
||||
return ForgotPasswordAction::PinCode;
|
||||
}
|
||||
if (str == QStringLiteral("InNetworkRequired")) {
|
||||
return ForgotPasswordAction::InNetworkRequired;
|
||||
}
|
||||
|
||||
return ForgotPasswordAction::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/forgotpassworddto.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ForgotPasswordDto::ForgotPasswordDto() {}
|
||||
ForgotPasswordDto::ForgotPasswordDto(const ForgotPasswordDto &other) :
|
||||
m_enteredUsername(other.m_enteredUsername){}
|
||||
|
||||
ForgotPasswordDto ForgotPasswordDto::fromJson(QJsonObject source) {
|
||||
ForgotPasswordDto instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ForgotPasswordDto::setFromJson(QJsonObject source) {
|
||||
m_enteredUsername = Jellyfin::Support::fromJsonValue<QString>(source["EnteredUsername"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ForgotPasswordDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["EnteredUsername"] = Jellyfin::Support::toJsonValue<QString>(m_enteredUsername);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString ForgotPasswordDto::enteredUsername() const { return m_enteredUsername; }
|
||||
|
||||
void ForgotPasswordDto::setEnteredUsername(QString newEnteredUsername) {
|
||||
m_enteredUsername = newEnteredUsername;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ForgotPasswordDto = Jellyfin::DTO::ForgotPasswordDto;
|
||||
|
||||
template <>
|
||||
ForgotPasswordDto fromJsonValue<ForgotPasswordDto>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ForgotPasswordDto::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/forgotpasswordresult.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ForgotPasswordResult::ForgotPasswordResult() {}
|
||||
ForgotPasswordResult::ForgotPasswordResult(const ForgotPasswordResult &other) :
|
||||
m_action(other.m_action),
|
||||
m_pinFile(other.m_pinFile),
|
||||
m_pinExpirationDate(other.m_pinExpirationDate){}
|
||||
|
||||
ForgotPasswordResult ForgotPasswordResult::fromJson(QJsonObject source) {
|
||||
ForgotPasswordResult instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ForgotPasswordResult::setFromJson(QJsonObject source) {
|
||||
m_action = Jellyfin::Support::fromJsonValue<ForgotPasswordAction>(source["Action"]);
|
||||
m_pinFile = Jellyfin::Support::fromJsonValue<QString>(source["PinFile"]);
|
||||
m_pinExpirationDate = Jellyfin::Support::fromJsonValue<QDateTime>(source["PinExpirationDate"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ForgotPasswordResult::toJson() {
|
||||
QJsonObject result;
|
||||
result["Action"] = Jellyfin::Support::toJsonValue<ForgotPasswordAction>(m_action);
|
||||
result["PinFile"] = Jellyfin::Support::toJsonValue<QString>(m_pinFile);
|
||||
result["PinExpirationDate"] = Jellyfin::Support::toJsonValue<QDateTime>(m_pinExpirationDate);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
ForgotPasswordAction ForgotPasswordResult::action() const { return m_action; }
|
||||
|
||||
void ForgotPasswordResult::setAction(ForgotPasswordAction newAction) {
|
||||
m_action = newAction;
|
||||
}
|
||||
QString ForgotPasswordResult::pinFile() const { return m_pinFile; }
|
||||
|
||||
void ForgotPasswordResult::setPinFile(QString newPinFile) {
|
||||
m_pinFile = newPinFile;
|
||||
}
|
||||
QDateTime ForgotPasswordResult::pinExpirationDate() const { return m_pinExpirationDate; }
|
||||
|
||||
void ForgotPasswordResult::setPinExpirationDate(QDateTime newPinExpirationDate) {
|
||||
m_pinExpirationDate = newPinExpirationDate;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ForgotPasswordResult = Jellyfin::DTO::ForgotPasswordResult;
|
||||
|
||||
template <>
|
||||
ForgotPasswordResult fromJsonValue<ForgotPasswordResult>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ForgotPasswordResult::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/generalcommand.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
GeneralCommand::GeneralCommand() {}
|
||||
GeneralCommand::GeneralCommand(const GeneralCommand &other) :
|
||||
m_name(other.m_name),
|
||||
m_controllingUserId(other.m_controllingUserId),
|
||||
m_arguments(other.m_arguments){}
|
||||
|
||||
GeneralCommand GeneralCommand::fromJson(QJsonObject source) {
|
||||
GeneralCommand instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void GeneralCommand::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<GeneralCommandType>(source["Name"]);
|
||||
m_controllingUserId = Jellyfin::Support::fromJsonValue<QUuid>(source["ControllingUserId"]);
|
||||
m_arguments = Jellyfin::Support::fromJsonValue<QJsonObject>(source["Arguments"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject GeneralCommand::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<GeneralCommandType>(m_name);
|
||||
result["ControllingUserId"] = Jellyfin::Support::toJsonValue<QUuid>(m_controllingUserId);
|
||||
result["Arguments"] = Jellyfin::Support::toJsonValue<QJsonObject>(m_arguments);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
GeneralCommandType GeneralCommand::name() const { return m_name; }
|
||||
|
||||
void GeneralCommand::setName(GeneralCommandType newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QUuid GeneralCommand::controllingUserId() const { return m_controllingUserId; }
|
||||
|
||||
void GeneralCommand::setControllingUserId(QUuid newControllingUserId) {
|
||||
m_controllingUserId = newControllingUserId;
|
||||
}
|
||||
QJsonObject GeneralCommand::arguments() const { return m_arguments; }
|
||||
|
||||
void GeneralCommand::setArguments(QJsonObject newArguments) {
|
||||
m_arguments = newArguments;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GeneralCommand = Jellyfin::DTO::GeneralCommand;
|
||||
|
||||
template <>
|
||||
GeneralCommand fromJsonValue<GeneralCommand>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return GeneralCommand::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,177 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/generalcommandtype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
GeneralCommandTypeClass::GeneralCommandTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GeneralCommandType = Jellyfin::DTO::GeneralCommandType;
|
||||
|
||||
template <>
|
||||
GeneralCommandType fromJsonValue<GeneralCommandType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return GeneralCommandType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("MoveUp")) {
|
||||
return GeneralCommandType::MoveUp;
|
||||
}
|
||||
if (str == QStringLiteral("MoveDown")) {
|
||||
return GeneralCommandType::MoveDown;
|
||||
}
|
||||
if (str == QStringLiteral("MoveLeft")) {
|
||||
return GeneralCommandType::MoveLeft;
|
||||
}
|
||||
if (str == QStringLiteral("MoveRight")) {
|
||||
return GeneralCommandType::MoveRight;
|
||||
}
|
||||
if (str == QStringLiteral("PageUp")) {
|
||||
return GeneralCommandType::PageUp;
|
||||
}
|
||||
if (str == QStringLiteral("PageDown")) {
|
||||
return GeneralCommandType::PageDown;
|
||||
}
|
||||
if (str == QStringLiteral("PreviousLetter")) {
|
||||
return GeneralCommandType::PreviousLetter;
|
||||
}
|
||||
if (str == QStringLiteral("NextLetter")) {
|
||||
return GeneralCommandType::NextLetter;
|
||||
}
|
||||
if (str == QStringLiteral("ToggleOsd")) {
|
||||
return GeneralCommandType::ToggleOsd;
|
||||
}
|
||||
if (str == QStringLiteral("ToggleContextMenu")) {
|
||||
return GeneralCommandType::ToggleContextMenu;
|
||||
}
|
||||
if (str == QStringLiteral("Select")) {
|
||||
return GeneralCommandType::Select;
|
||||
}
|
||||
if (str == QStringLiteral("Back")) {
|
||||
return GeneralCommandType::Back;
|
||||
}
|
||||
if (str == QStringLiteral("TakeScreenshot")) {
|
||||
return GeneralCommandType::TakeScreenshot;
|
||||
}
|
||||
if (str == QStringLiteral("SendKey")) {
|
||||
return GeneralCommandType::SendKey;
|
||||
}
|
||||
if (str == QStringLiteral("SendString")) {
|
||||
return GeneralCommandType::SendString;
|
||||
}
|
||||
if (str == QStringLiteral("GoHome")) {
|
||||
return GeneralCommandType::GoHome;
|
||||
}
|
||||
if (str == QStringLiteral("GoToSettings")) {
|
||||
return GeneralCommandType::GoToSettings;
|
||||
}
|
||||
if (str == QStringLiteral("VolumeUp")) {
|
||||
return GeneralCommandType::VolumeUp;
|
||||
}
|
||||
if (str == QStringLiteral("VolumeDown")) {
|
||||
return GeneralCommandType::VolumeDown;
|
||||
}
|
||||
if (str == QStringLiteral("Mute")) {
|
||||
return GeneralCommandType::Mute;
|
||||
}
|
||||
if (str == QStringLiteral("Unmute")) {
|
||||
return GeneralCommandType::Unmute;
|
||||
}
|
||||
if (str == QStringLiteral("ToggleMute")) {
|
||||
return GeneralCommandType::ToggleMute;
|
||||
}
|
||||
if (str == QStringLiteral("SetVolume")) {
|
||||
return GeneralCommandType::SetVolume;
|
||||
}
|
||||
if (str == QStringLiteral("SetAudioStreamIndex")) {
|
||||
return GeneralCommandType::SetAudioStreamIndex;
|
||||
}
|
||||
if (str == QStringLiteral("SetSubtitleStreamIndex")) {
|
||||
return GeneralCommandType::SetSubtitleStreamIndex;
|
||||
}
|
||||
if (str == QStringLiteral("ToggleFullscreen")) {
|
||||
return GeneralCommandType::ToggleFullscreen;
|
||||
}
|
||||
if (str == QStringLiteral("DisplayContent")) {
|
||||
return GeneralCommandType::DisplayContent;
|
||||
}
|
||||
if (str == QStringLiteral("GoToSearch")) {
|
||||
return GeneralCommandType::GoToSearch;
|
||||
}
|
||||
if (str == QStringLiteral("DisplayMessage")) {
|
||||
return GeneralCommandType::DisplayMessage;
|
||||
}
|
||||
if (str == QStringLiteral("SetRepeatMode")) {
|
||||
return GeneralCommandType::SetRepeatMode;
|
||||
}
|
||||
if (str == QStringLiteral("ChannelUp")) {
|
||||
return GeneralCommandType::ChannelUp;
|
||||
}
|
||||
if (str == QStringLiteral("ChannelDown")) {
|
||||
return GeneralCommandType::ChannelDown;
|
||||
}
|
||||
if (str == QStringLiteral("Guide")) {
|
||||
return GeneralCommandType::Guide;
|
||||
}
|
||||
if (str == QStringLiteral("ToggleStats")) {
|
||||
return GeneralCommandType::ToggleStats;
|
||||
}
|
||||
if (str == QStringLiteral("PlayMediaSource")) {
|
||||
return GeneralCommandType::PlayMediaSource;
|
||||
}
|
||||
if (str == QStringLiteral("PlayTrailers")) {
|
||||
return GeneralCommandType::PlayTrailers;
|
||||
}
|
||||
if (str == QStringLiteral("SetShuffleQueue")) {
|
||||
return GeneralCommandType::SetShuffleQueue;
|
||||
}
|
||||
if (str == QStringLiteral("PlayState")) {
|
||||
return GeneralCommandType::PlayState;
|
||||
}
|
||||
if (str == QStringLiteral("PlayNext")) {
|
||||
return GeneralCommandType::PlayNext;
|
||||
}
|
||||
if (str == QStringLiteral("ToggleOsdMenu")) {
|
||||
return GeneralCommandType::ToggleOsdMenu;
|
||||
}
|
||||
if (str == QStringLiteral("Play")) {
|
||||
return GeneralCommandType::Play;
|
||||
}
|
||||
|
||||
return GeneralCommandType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,285 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/getprogramsdto.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
GetProgramsDto::GetProgramsDto() {}
|
||||
GetProgramsDto::GetProgramsDto(const GetProgramsDto &other) :
|
||||
m_channelIds(other.m_channelIds),
|
||||
m_userId(other.m_userId),
|
||||
m_minStartDate(other.m_minStartDate),
|
||||
m_hasAired(other.m_hasAired),
|
||||
m_isAiring(other.m_isAiring),
|
||||
m_maxStartDate(other.m_maxStartDate),
|
||||
m_minEndDate(other.m_minEndDate),
|
||||
m_maxEndDate(other.m_maxEndDate),
|
||||
m_isMovie(other.m_isMovie),
|
||||
m_isSeries(other.m_isSeries),
|
||||
m_isNews(other.m_isNews),
|
||||
m_isKids(other.m_isKids),
|
||||
m_isSports(other.m_isSports),
|
||||
m_startIndex(other.m_startIndex),
|
||||
m_limit(other.m_limit),
|
||||
m_sortBy(other.m_sortBy),
|
||||
m_sortOrder(other.m_sortOrder),
|
||||
m_genres(other.m_genres),
|
||||
m_genreIds(other.m_genreIds),
|
||||
m_enableImages(other.m_enableImages),
|
||||
m_enableTotalRecordCount(other.m_enableTotalRecordCount),
|
||||
m_imageTypeLimit(other.m_imageTypeLimit),
|
||||
m_enableImageTypes(other.m_enableImageTypes),
|
||||
m_enableUserData(other.m_enableUserData),
|
||||
m_seriesTimerId(other.m_seriesTimerId),
|
||||
m_librarySeriesId(other.m_librarySeriesId),
|
||||
m_fields(other.m_fields){}
|
||||
|
||||
GetProgramsDto GetProgramsDto::fromJson(QJsonObject source) {
|
||||
GetProgramsDto instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void GetProgramsDto::setFromJson(QJsonObject source) {
|
||||
m_channelIds = Jellyfin::Support::fromJsonValue<QList<QUuid>>(source["ChannelIds"]);
|
||||
m_userId = Jellyfin::Support::fromJsonValue<QUuid>(source["UserId"]);
|
||||
m_minStartDate = Jellyfin::Support::fromJsonValue<QDateTime>(source["MinStartDate"]);
|
||||
m_hasAired = Jellyfin::Support::fromJsonValue<bool>(source["HasAired"]);
|
||||
m_isAiring = Jellyfin::Support::fromJsonValue<bool>(source["IsAiring"]);
|
||||
m_maxStartDate = Jellyfin::Support::fromJsonValue<QDateTime>(source["MaxStartDate"]);
|
||||
m_minEndDate = Jellyfin::Support::fromJsonValue<QDateTime>(source["MinEndDate"]);
|
||||
m_maxEndDate = Jellyfin::Support::fromJsonValue<QDateTime>(source["MaxEndDate"]);
|
||||
m_isMovie = Jellyfin::Support::fromJsonValue<bool>(source["IsMovie"]);
|
||||
m_isSeries = Jellyfin::Support::fromJsonValue<bool>(source["IsSeries"]);
|
||||
m_isNews = Jellyfin::Support::fromJsonValue<bool>(source["IsNews"]);
|
||||
m_isKids = Jellyfin::Support::fromJsonValue<bool>(source["IsKids"]);
|
||||
m_isSports = Jellyfin::Support::fromJsonValue<bool>(source["IsSports"]);
|
||||
m_startIndex = Jellyfin::Support::fromJsonValue<qint32>(source["StartIndex"]);
|
||||
m_limit = Jellyfin::Support::fromJsonValue<qint32>(source["Limit"]);
|
||||
m_sortBy = Jellyfin::Support::fromJsonValue<QString>(source["SortBy"]);
|
||||
m_sortOrder = Jellyfin::Support::fromJsonValue<QString>(source["SortOrder"]);
|
||||
m_genres = Jellyfin::Support::fromJsonValue<QStringList>(source["Genres"]);
|
||||
m_genreIds = Jellyfin::Support::fromJsonValue<QList<QUuid>>(source["GenreIds"]);
|
||||
m_enableImages = Jellyfin::Support::fromJsonValue<bool>(source["EnableImages"]);
|
||||
m_enableTotalRecordCount = Jellyfin::Support::fromJsonValue<bool>(source["EnableTotalRecordCount"]);
|
||||
m_imageTypeLimit = Jellyfin::Support::fromJsonValue<qint32>(source["ImageTypeLimit"]);
|
||||
m_enableImageTypes = Jellyfin::Support::fromJsonValue<QList<ImageType>>(source["EnableImageTypes"]);
|
||||
m_enableUserData = Jellyfin::Support::fromJsonValue<bool>(source["EnableUserData"]);
|
||||
m_seriesTimerId = Jellyfin::Support::fromJsonValue<QString>(source["SeriesTimerId"]);
|
||||
m_librarySeriesId = Jellyfin::Support::fromJsonValue<QUuid>(source["LibrarySeriesId"]);
|
||||
m_fields = Jellyfin::Support::fromJsonValue<QList<ItemFields>>(source["Fields"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject GetProgramsDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["ChannelIds"] = Jellyfin::Support::toJsonValue<QList<QUuid>>(m_channelIds);
|
||||
result["UserId"] = Jellyfin::Support::toJsonValue<QUuid>(m_userId);
|
||||
result["MinStartDate"] = Jellyfin::Support::toJsonValue<QDateTime>(m_minStartDate);
|
||||
result["HasAired"] = Jellyfin::Support::toJsonValue<bool>(m_hasAired);
|
||||
result["IsAiring"] = Jellyfin::Support::toJsonValue<bool>(m_isAiring);
|
||||
result["MaxStartDate"] = Jellyfin::Support::toJsonValue<QDateTime>(m_maxStartDate);
|
||||
result["MinEndDate"] = Jellyfin::Support::toJsonValue<QDateTime>(m_minEndDate);
|
||||
result["MaxEndDate"] = Jellyfin::Support::toJsonValue<QDateTime>(m_maxEndDate);
|
||||
result["IsMovie"] = Jellyfin::Support::toJsonValue<bool>(m_isMovie);
|
||||
result["IsSeries"] = Jellyfin::Support::toJsonValue<bool>(m_isSeries);
|
||||
result["IsNews"] = Jellyfin::Support::toJsonValue<bool>(m_isNews);
|
||||
result["IsKids"] = Jellyfin::Support::toJsonValue<bool>(m_isKids);
|
||||
result["IsSports"] = Jellyfin::Support::toJsonValue<bool>(m_isSports);
|
||||
result["StartIndex"] = Jellyfin::Support::toJsonValue<qint32>(m_startIndex);
|
||||
result["Limit"] = Jellyfin::Support::toJsonValue<qint32>(m_limit);
|
||||
result["SortBy"] = Jellyfin::Support::toJsonValue<QString>(m_sortBy);
|
||||
result["SortOrder"] = Jellyfin::Support::toJsonValue<QString>(m_sortOrder);
|
||||
result["Genres"] = Jellyfin::Support::toJsonValue<QStringList>(m_genres);
|
||||
result["GenreIds"] = Jellyfin::Support::toJsonValue<QList<QUuid>>(m_genreIds);
|
||||
result["EnableImages"] = Jellyfin::Support::toJsonValue<bool>(m_enableImages);
|
||||
result["EnableTotalRecordCount"] = Jellyfin::Support::toJsonValue<bool>(m_enableTotalRecordCount);
|
||||
result["ImageTypeLimit"] = Jellyfin::Support::toJsonValue<qint32>(m_imageTypeLimit);
|
||||
result["EnableImageTypes"] = Jellyfin::Support::toJsonValue<QList<ImageType>>(m_enableImageTypes);
|
||||
result["EnableUserData"] = Jellyfin::Support::toJsonValue<bool>(m_enableUserData);
|
||||
result["SeriesTimerId"] = Jellyfin::Support::toJsonValue<QString>(m_seriesTimerId);
|
||||
result["LibrarySeriesId"] = Jellyfin::Support::toJsonValue<QUuid>(m_librarySeriesId);
|
||||
result["Fields"] = Jellyfin::Support::toJsonValue<QList<ItemFields>>(m_fields);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QList<QUuid> GetProgramsDto::channelIds() const { return m_channelIds; }
|
||||
|
||||
void GetProgramsDto::setChannelIds(QList<QUuid> newChannelIds) {
|
||||
m_channelIds = newChannelIds;
|
||||
}
|
||||
QUuid GetProgramsDto::userId() const { return m_userId; }
|
||||
|
||||
void GetProgramsDto::setUserId(QUuid newUserId) {
|
||||
m_userId = newUserId;
|
||||
}
|
||||
QDateTime GetProgramsDto::minStartDate() const { return m_minStartDate; }
|
||||
|
||||
void GetProgramsDto::setMinStartDate(QDateTime newMinStartDate) {
|
||||
m_minStartDate = newMinStartDate;
|
||||
}
|
||||
bool GetProgramsDto::hasAired() const { return m_hasAired; }
|
||||
|
||||
void GetProgramsDto::setHasAired(bool newHasAired) {
|
||||
m_hasAired = newHasAired;
|
||||
}
|
||||
bool GetProgramsDto::isAiring() const { return m_isAiring; }
|
||||
|
||||
void GetProgramsDto::setIsAiring(bool newIsAiring) {
|
||||
m_isAiring = newIsAiring;
|
||||
}
|
||||
QDateTime GetProgramsDto::maxStartDate() const { return m_maxStartDate; }
|
||||
|
||||
void GetProgramsDto::setMaxStartDate(QDateTime newMaxStartDate) {
|
||||
m_maxStartDate = newMaxStartDate;
|
||||
}
|
||||
QDateTime GetProgramsDto::minEndDate() const { return m_minEndDate; }
|
||||
|
||||
void GetProgramsDto::setMinEndDate(QDateTime newMinEndDate) {
|
||||
m_minEndDate = newMinEndDate;
|
||||
}
|
||||
QDateTime GetProgramsDto::maxEndDate() const { return m_maxEndDate; }
|
||||
|
||||
void GetProgramsDto::setMaxEndDate(QDateTime newMaxEndDate) {
|
||||
m_maxEndDate = newMaxEndDate;
|
||||
}
|
||||
bool GetProgramsDto::isMovie() const { return m_isMovie; }
|
||||
|
||||
void GetProgramsDto::setIsMovie(bool newIsMovie) {
|
||||
m_isMovie = newIsMovie;
|
||||
}
|
||||
bool GetProgramsDto::isSeries() const { return m_isSeries; }
|
||||
|
||||
void GetProgramsDto::setIsSeries(bool newIsSeries) {
|
||||
m_isSeries = newIsSeries;
|
||||
}
|
||||
bool GetProgramsDto::isNews() const { return m_isNews; }
|
||||
|
||||
void GetProgramsDto::setIsNews(bool newIsNews) {
|
||||
m_isNews = newIsNews;
|
||||
}
|
||||
bool GetProgramsDto::isKids() const { return m_isKids; }
|
||||
|
||||
void GetProgramsDto::setIsKids(bool newIsKids) {
|
||||
m_isKids = newIsKids;
|
||||
}
|
||||
bool GetProgramsDto::isSports() const { return m_isSports; }
|
||||
|
||||
void GetProgramsDto::setIsSports(bool newIsSports) {
|
||||
m_isSports = newIsSports;
|
||||
}
|
||||
qint32 GetProgramsDto::startIndex() const { return m_startIndex; }
|
||||
|
||||
void GetProgramsDto::setStartIndex(qint32 newStartIndex) {
|
||||
m_startIndex = newStartIndex;
|
||||
}
|
||||
qint32 GetProgramsDto::limit() const { return m_limit; }
|
||||
|
||||
void GetProgramsDto::setLimit(qint32 newLimit) {
|
||||
m_limit = newLimit;
|
||||
}
|
||||
QString GetProgramsDto::sortBy() const { return m_sortBy; }
|
||||
|
||||
void GetProgramsDto::setSortBy(QString newSortBy) {
|
||||
m_sortBy = newSortBy;
|
||||
}
|
||||
QString GetProgramsDto::sortOrder() const { return m_sortOrder; }
|
||||
|
||||
void GetProgramsDto::setSortOrder(QString newSortOrder) {
|
||||
m_sortOrder = newSortOrder;
|
||||
}
|
||||
QStringList GetProgramsDto::genres() const { return m_genres; }
|
||||
|
||||
void GetProgramsDto::setGenres(QStringList newGenres) {
|
||||
m_genres = newGenres;
|
||||
}
|
||||
QList<QUuid> GetProgramsDto::genreIds() const { return m_genreIds; }
|
||||
|
||||
void GetProgramsDto::setGenreIds(QList<QUuid> newGenreIds) {
|
||||
m_genreIds = newGenreIds;
|
||||
}
|
||||
bool GetProgramsDto::enableImages() const { return m_enableImages; }
|
||||
|
||||
void GetProgramsDto::setEnableImages(bool newEnableImages) {
|
||||
m_enableImages = newEnableImages;
|
||||
}
|
||||
bool GetProgramsDto::enableTotalRecordCount() const { return m_enableTotalRecordCount; }
|
||||
|
||||
void GetProgramsDto::setEnableTotalRecordCount(bool newEnableTotalRecordCount) {
|
||||
m_enableTotalRecordCount = newEnableTotalRecordCount;
|
||||
}
|
||||
qint32 GetProgramsDto::imageTypeLimit() const { return m_imageTypeLimit; }
|
||||
|
||||
void GetProgramsDto::setImageTypeLimit(qint32 newImageTypeLimit) {
|
||||
m_imageTypeLimit = newImageTypeLimit;
|
||||
}
|
||||
QList<ImageType> GetProgramsDto::enableImageTypes() const { return m_enableImageTypes; }
|
||||
|
||||
void GetProgramsDto::setEnableImageTypes(QList<ImageType> newEnableImageTypes) {
|
||||
m_enableImageTypes = newEnableImageTypes;
|
||||
}
|
||||
bool GetProgramsDto::enableUserData() const { return m_enableUserData; }
|
||||
|
||||
void GetProgramsDto::setEnableUserData(bool newEnableUserData) {
|
||||
m_enableUserData = newEnableUserData;
|
||||
}
|
||||
QString GetProgramsDto::seriesTimerId() const { return m_seriesTimerId; }
|
||||
|
||||
void GetProgramsDto::setSeriesTimerId(QString newSeriesTimerId) {
|
||||
m_seriesTimerId = newSeriesTimerId;
|
||||
}
|
||||
QUuid GetProgramsDto::librarySeriesId() const { return m_librarySeriesId; }
|
||||
|
||||
void GetProgramsDto::setLibrarySeriesId(QUuid newLibrarySeriesId) {
|
||||
m_librarySeriesId = newLibrarySeriesId;
|
||||
}
|
||||
QList<ItemFields> GetProgramsDto::fields() const { return m_fields; }
|
||||
|
||||
void GetProgramsDto::setFields(QList<ItemFields> newFields) {
|
||||
m_fields = newFields;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GetProgramsDto = Jellyfin::DTO::GetProgramsDto;
|
||||
|
||||
template <>
|
||||
GetProgramsDto fromJsonValue<GetProgramsDto>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return GetProgramsDto::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/groupinfodto.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
GroupInfoDto::GroupInfoDto() {}
|
||||
GroupInfoDto::GroupInfoDto(const GroupInfoDto &other) :
|
||||
m_groupId(other.m_groupId),
|
||||
m_groupName(other.m_groupName),
|
||||
m_state(other.m_state),
|
||||
m_participants(other.m_participants),
|
||||
m_lastUpdatedAt(other.m_lastUpdatedAt){}
|
||||
|
||||
GroupInfoDto GroupInfoDto::fromJson(QJsonObject source) {
|
||||
GroupInfoDto instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void GroupInfoDto::setFromJson(QJsonObject source) {
|
||||
m_groupId = Jellyfin::Support::fromJsonValue<QUuid>(source["GroupId"]);
|
||||
m_groupName = Jellyfin::Support::fromJsonValue<QString>(source["GroupName"]);
|
||||
m_state = Jellyfin::Support::fromJsonValue<GroupStateType>(source["State"]);
|
||||
m_participants = Jellyfin::Support::fromJsonValue<QStringList>(source["Participants"]);
|
||||
m_lastUpdatedAt = Jellyfin::Support::fromJsonValue<QDateTime>(source["LastUpdatedAt"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject GroupInfoDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["GroupId"] = Jellyfin::Support::toJsonValue<QUuid>(m_groupId);
|
||||
result["GroupName"] = Jellyfin::Support::toJsonValue<QString>(m_groupName);
|
||||
result["State"] = Jellyfin::Support::toJsonValue<GroupStateType>(m_state);
|
||||
result["Participants"] = Jellyfin::Support::toJsonValue<QStringList>(m_participants);
|
||||
result["LastUpdatedAt"] = Jellyfin::Support::toJsonValue<QDateTime>(m_lastUpdatedAt);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QUuid GroupInfoDto::groupId() const { return m_groupId; }
|
||||
|
||||
void GroupInfoDto::setGroupId(QUuid newGroupId) {
|
||||
m_groupId = newGroupId;
|
||||
}
|
||||
QString GroupInfoDto::groupName() const { return m_groupName; }
|
||||
|
||||
void GroupInfoDto::setGroupName(QString newGroupName) {
|
||||
m_groupName = newGroupName;
|
||||
}
|
||||
GroupStateType GroupInfoDto::state() const { return m_state; }
|
||||
|
||||
void GroupInfoDto::setState(GroupStateType newState) {
|
||||
m_state = newState;
|
||||
}
|
||||
QStringList GroupInfoDto::participants() const { return m_participants; }
|
||||
|
||||
void GroupInfoDto::setParticipants(QStringList newParticipants) {
|
||||
m_participants = newParticipants;
|
||||
}
|
||||
QDateTime GroupInfoDto::lastUpdatedAt() const { return m_lastUpdatedAt; }
|
||||
|
||||
void GroupInfoDto::setLastUpdatedAt(QDateTime newLastUpdatedAt) {
|
||||
m_lastUpdatedAt = newLastUpdatedAt;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GroupInfoDto = Jellyfin::DTO::GroupInfoDto;
|
||||
|
||||
template <>
|
||||
GroupInfoDto fromJsonValue<GroupInfoDto>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return GroupInfoDto::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/groupqueuemode.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
GroupQueueModeClass::GroupQueueModeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GroupQueueMode = Jellyfin::DTO::GroupQueueMode;
|
||||
|
||||
template <>
|
||||
GroupQueueMode fromJsonValue<GroupQueueMode>(const QJsonValue &source) {
|
||||
if (!source.isString()) return GroupQueueMode::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Queue")) {
|
||||
return GroupQueueMode::Queue;
|
||||
}
|
||||
if (str == QStringLiteral("QueueNext")) {
|
||||
return GroupQueueMode::QueueNext;
|
||||
}
|
||||
|
||||
return GroupQueueMode::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/grouprepeatmode.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
GroupRepeatModeClass::GroupRepeatModeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GroupRepeatMode = Jellyfin::DTO::GroupRepeatMode;
|
||||
|
||||
template <>
|
||||
GroupRepeatMode fromJsonValue<GroupRepeatMode>(const QJsonValue &source) {
|
||||
if (!source.isString()) return GroupRepeatMode::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("RepeatOne")) {
|
||||
return GroupRepeatMode::RepeatOne;
|
||||
}
|
||||
if (str == QStringLiteral("RepeatAll")) {
|
||||
return GroupRepeatMode::RepeatAll;
|
||||
}
|
||||
if (str == QStringLiteral("RepeatNone")) {
|
||||
return GroupRepeatMode::RepeatNone;
|
||||
}
|
||||
|
||||
return GroupRepeatMode::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/groupshufflemode.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
GroupShuffleModeClass::GroupShuffleModeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GroupShuffleMode = Jellyfin::DTO::GroupShuffleMode;
|
||||
|
||||
template <>
|
||||
GroupShuffleMode fromJsonValue<GroupShuffleMode>(const QJsonValue &source) {
|
||||
if (!source.isString()) return GroupShuffleMode::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Sorted")) {
|
||||
return GroupShuffleMode::Sorted;
|
||||
}
|
||||
if (str == QStringLiteral("Shuffle")) {
|
||||
return GroupShuffleMode::Shuffle;
|
||||
}
|
||||
|
||||
return GroupShuffleMode::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/groupstatetype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
GroupStateTypeClass::GroupStateTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GroupStateType = Jellyfin::DTO::GroupStateType;
|
||||
|
||||
template <>
|
||||
GroupStateType fromJsonValue<GroupStateType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return GroupStateType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Idle")) {
|
||||
return GroupStateType::Idle;
|
||||
}
|
||||
if (str == QStringLiteral("Waiting")) {
|
||||
return GroupStateType::Waiting;
|
||||
}
|
||||
if (str == QStringLiteral("Paused")) {
|
||||
return GroupStateType::Paused;
|
||||
}
|
||||
if (str == QStringLiteral("Playing")) {
|
||||
return GroupStateType::Playing;
|
||||
}
|
||||
|
||||
return GroupStateType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,87 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/groupupdatetype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
GroupUpdateTypeClass::GroupUpdateTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GroupUpdateType = Jellyfin::DTO::GroupUpdateType;
|
||||
|
||||
template <>
|
||||
GroupUpdateType fromJsonValue<GroupUpdateType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return GroupUpdateType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("UserJoined")) {
|
||||
return GroupUpdateType::UserJoined;
|
||||
}
|
||||
if (str == QStringLiteral("UserLeft")) {
|
||||
return GroupUpdateType::UserLeft;
|
||||
}
|
||||
if (str == QStringLiteral("GroupJoined")) {
|
||||
return GroupUpdateType::GroupJoined;
|
||||
}
|
||||
if (str == QStringLiteral("GroupLeft")) {
|
||||
return GroupUpdateType::GroupLeft;
|
||||
}
|
||||
if (str == QStringLiteral("StateUpdate")) {
|
||||
return GroupUpdateType::StateUpdate;
|
||||
}
|
||||
if (str == QStringLiteral("PlayQueue")) {
|
||||
return GroupUpdateType::PlayQueue;
|
||||
}
|
||||
if (str == QStringLiteral("NotInGroup")) {
|
||||
return GroupUpdateType::NotInGroup;
|
||||
}
|
||||
if (str == QStringLiteral("GroupDoesNotExist")) {
|
||||
return GroupUpdateType::GroupDoesNotExist;
|
||||
}
|
||||
if (str == QStringLiteral("CreateGroupDenied")) {
|
||||
return GroupUpdateType::CreateGroupDenied;
|
||||
}
|
||||
if (str == QStringLiteral("JoinGroupDenied")) {
|
||||
return GroupUpdateType::JoinGroupDenied;
|
||||
}
|
||||
if (str == QStringLiteral("LibraryAccessDenied")) {
|
||||
return GroupUpdateType::LibraryAccessDenied;
|
||||
}
|
||||
|
||||
return GroupUpdateType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,85 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/guideinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
GuideInfo::GuideInfo() {}
|
||||
GuideInfo::GuideInfo(const GuideInfo &other) :
|
||||
m_startDate(other.m_startDate),
|
||||
m_endDate(other.m_endDate){}
|
||||
|
||||
GuideInfo GuideInfo::fromJson(QJsonObject source) {
|
||||
GuideInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void GuideInfo::setFromJson(QJsonObject source) {
|
||||
m_startDate = Jellyfin::Support::fromJsonValue<QDateTime>(source["StartDate"]);
|
||||
m_endDate = Jellyfin::Support::fromJsonValue<QDateTime>(source["EndDate"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject GuideInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["StartDate"] = Jellyfin::Support::toJsonValue<QDateTime>(m_startDate);
|
||||
result["EndDate"] = Jellyfin::Support::toJsonValue<QDateTime>(m_endDate);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QDateTime GuideInfo::startDate() const { return m_startDate; }
|
||||
|
||||
void GuideInfo::setStartDate(QDateTime newStartDate) {
|
||||
m_startDate = newStartDate;
|
||||
}
|
||||
QDateTime GuideInfo::endDate() const { return m_endDate; }
|
||||
|
||||
void GuideInfo::setEndDate(QDateTime newEndDate) {
|
||||
m_endDate = newEndDate;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using GuideInfo = Jellyfin::DTO::GuideInfo;
|
||||
|
||||
template <>
|
||||
GuideInfo fromJsonValue<GuideInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return GuideInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/headermatchtype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
HeaderMatchTypeClass::HeaderMatchTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using HeaderMatchType = Jellyfin::DTO::HeaderMatchType;
|
||||
|
||||
template <>
|
||||
HeaderMatchType fromJsonValue<HeaderMatchType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return HeaderMatchType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Equals")) {
|
||||
return HeaderMatchType::Equals;
|
||||
}
|
||||
if (str == QStringLiteral("Regex")) {
|
||||
return HeaderMatchType::Regex;
|
||||
}
|
||||
if (str == QStringLiteral("Substring")) {
|
||||
return HeaderMatchType::Substring;
|
||||
}
|
||||
|
||||
return HeaderMatchType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/httpheaderinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
HttpHeaderInfo::HttpHeaderInfo() {}
|
||||
HttpHeaderInfo::HttpHeaderInfo(const HttpHeaderInfo &other) :
|
||||
m_name(other.m_name),
|
||||
m_value(other.m_value),
|
||||
m_match(other.m_match){}
|
||||
|
||||
HttpHeaderInfo HttpHeaderInfo::fromJson(QJsonObject source) {
|
||||
HttpHeaderInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void HttpHeaderInfo::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_value = Jellyfin::Support::fromJsonValue<QString>(source["Value"]);
|
||||
m_match = Jellyfin::Support::fromJsonValue<HeaderMatchType>(source["Match"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject HttpHeaderInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Value"] = Jellyfin::Support::toJsonValue<QString>(m_value);
|
||||
result["Match"] = Jellyfin::Support::toJsonValue<HeaderMatchType>(m_match);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString HttpHeaderInfo::name() const { return m_name; }
|
||||
|
||||
void HttpHeaderInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString HttpHeaderInfo::value() const { return m_value; }
|
||||
|
||||
void HttpHeaderInfo::setValue(QString newValue) {
|
||||
m_value = newValue;
|
||||
}
|
||||
HeaderMatchType HttpHeaderInfo::match() const { return m_match; }
|
||||
|
||||
void HttpHeaderInfo::setMatch(HeaderMatchType newMatch) {
|
||||
m_match = newMatch;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using HttpHeaderInfo = Jellyfin::DTO::HttpHeaderInfo;
|
||||
|
||||
template <>
|
||||
HttpHeaderInfo fromJsonValue<HttpHeaderInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return HttpHeaderInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/ignorewaitrequestdto.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
IgnoreWaitRequestDto::IgnoreWaitRequestDto() {}
|
||||
IgnoreWaitRequestDto::IgnoreWaitRequestDto(const IgnoreWaitRequestDto &other) :
|
||||
m_ignoreWait(other.m_ignoreWait){}
|
||||
|
||||
IgnoreWaitRequestDto IgnoreWaitRequestDto::fromJson(QJsonObject source) {
|
||||
IgnoreWaitRequestDto instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void IgnoreWaitRequestDto::setFromJson(QJsonObject source) {
|
||||
m_ignoreWait = Jellyfin::Support::fromJsonValue<bool>(source["IgnoreWait"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject IgnoreWaitRequestDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["IgnoreWait"] = Jellyfin::Support::toJsonValue<bool>(m_ignoreWait);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
bool IgnoreWaitRequestDto::ignoreWait() const { return m_ignoreWait; }
|
||||
|
||||
void IgnoreWaitRequestDto::setIgnoreWait(bool newIgnoreWait) {
|
||||
m_ignoreWait = newIgnoreWait;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using IgnoreWaitRequestDto = Jellyfin::DTO::IgnoreWaitRequestDto;
|
||||
|
||||
template <>
|
||||
IgnoreWaitRequestDto fromJsonValue<IgnoreWaitRequestDto>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return IgnoreWaitRequestDto::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/imagebynameinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ImageByNameInfo::ImageByNameInfo() {}
|
||||
ImageByNameInfo::ImageByNameInfo(const ImageByNameInfo &other) :
|
||||
m_name(other.m_name),
|
||||
m_theme(other.m_theme),
|
||||
m_context(other.m_context),
|
||||
m_fileLength(other.m_fileLength),
|
||||
m_format(other.m_format){}
|
||||
|
||||
ImageByNameInfo ImageByNameInfo::fromJson(QJsonObject source) {
|
||||
ImageByNameInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ImageByNameInfo::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_theme = Jellyfin::Support::fromJsonValue<QString>(source["Theme"]);
|
||||
m_context = Jellyfin::Support::fromJsonValue<QString>(source["Context"]);
|
||||
m_fileLength = Jellyfin::Support::fromJsonValue<qint64>(source["FileLength"]);
|
||||
m_format = Jellyfin::Support::fromJsonValue<QString>(source["Format"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ImageByNameInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Theme"] = Jellyfin::Support::toJsonValue<QString>(m_theme);
|
||||
result["Context"] = Jellyfin::Support::toJsonValue<QString>(m_context);
|
||||
result["FileLength"] = Jellyfin::Support::toJsonValue<qint64>(m_fileLength);
|
||||
result["Format"] = Jellyfin::Support::toJsonValue<QString>(m_format);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString ImageByNameInfo::name() const { return m_name; }
|
||||
|
||||
void ImageByNameInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString ImageByNameInfo::theme() const { return m_theme; }
|
||||
|
||||
void ImageByNameInfo::setTheme(QString newTheme) {
|
||||
m_theme = newTheme;
|
||||
}
|
||||
QString ImageByNameInfo::context() const { return m_context; }
|
||||
|
||||
void ImageByNameInfo::setContext(QString newContext) {
|
||||
m_context = newContext;
|
||||
}
|
||||
qint64 ImageByNameInfo::fileLength() const { return m_fileLength; }
|
||||
|
||||
void ImageByNameInfo::setFileLength(qint64 newFileLength) {
|
||||
m_fileLength = newFileLength;
|
||||
}
|
||||
QString ImageByNameInfo::format() const { return m_format; }
|
||||
|
||||
void ImageByNameInfo::setFormat(QString newFormat) {
|
||||
m_format = newFormat;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageByNameInfo = Jellyfin::DTO::ImageByNameInfo;
|
||||
|
||||
template <>
|
||||
ImageByNameInfo fromJsonValue<ImageByNameInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ImageByNameInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/imageformat.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ImageFormatClass::ImageFormatClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageFormat = Jellyfin::DTO::ImageFormat;
|
||||
|
||||
template <>
|
||||
ImageFormat fromJsonValue<ImageFormat>(const QJsonValue &source) {
|
||||
if (!source.isString()) return ImageFormat::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Bmp")) {
|
||||
return ImageFormat::Bmp;
|
||||
}
|
||||
if (str == QStringLiteral("Gif")) {
|
||||
return ImageFormat::Gif;
|
||||
}
|
||||
if (str == QStringLiteral("Jpg")) {
|
||||
return ImageFormat::Jpg;
|
||||
}
|
||||
if (str == QStringLiteral("Png")) {
|
||||
return ImageFormat::Png;
|
||||
}
|
||||
if (str == QStringLiteral("Webp")) {
|
||||
return ImageFormat::Webp;
|
||||
}
|
||||
|
||||
return ImageFormat::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,133 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/imageinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ImageInfo::ImageInfo() {}
|
||||
ImageInfo::ImageInfo(const ImageInfo &other) :
|
||||
m_imageType(other.m_imageType),
|
||||
m_imageIndex(other.m_imageIndex),
|
||||
m_imageTag(other.m_imageTag),
|
||||
m_path(other.m_path),
|
||||
m_blurHash(other.m_blurHash),
|
||||
m_height(other.m_height),
|
||||
m_width(other.m_width),
|
||||
m_size(other.m_size){}
|
||||
|
||||
ImageInfo ImageInfo::fromJson(QJsonObject source) {
|
||||
ImageInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ImageInfo::setFromJson(QJsonObject source) {
|
||||
m_imageType = Jellyfin::Support::fromJsonValue<ImageType>(source["ImageType"]);
|
||||
m_imageIndex = Jellyfin::Support::fromJsonValue<qint32>(source["ImageIndex"]);
|
||||
m_imageTag = Jellyfin::Support::fromJsonValue<QString>(source["ImageTag"]);
|
||||
m_path = Jellyfin::Support::fromJsonValue<QString>(source["Path"]);
|
||||
m_blurHash = Jellyfin::Support::fromJsonValue<QString>(source["BlurHash"]);
|
||||
m_height = Jellyfin::Support::fromJsonValue<qint32>(source["Height"]);
|
||||
m_width = Jellyfin::Support::fromJsonValue<qint32>(source["Width"]);
|
||||
m_size = Jellyfin::Support::fromJsonValue<qint64>(source["Size"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ImageInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["ImageType"] = Jellyfin::Support::toJsonValue<ImageType>(m_imageType);
|
||||
result["ImageIndex"] = Jellyfin::Support::toJsonValue<qint32>(m_imageIndex);
|
||||
result["ImageTag"] = Jellyfin::Support::toJsonValue<QString>(m_imageTag);
|
||||
result["Path"] = Jellyfin::Support::toJsonValue<QString>(m_path);
|
||||
result["BlurHash"] = Jellyfin::Support::toJsonValue<QString>(m_blurHash);
|
||||
result["Height"] = Jellyfin::Support::toJsonValue<qint32>(m_height);
|
||||
result["Width"] = Jellyfin::Support::toJsonValue<qint32>(m_width);
|
||||
result["Size"] = Jellyfin::Support::toJsonValue<qint64>(m_size);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
ImageType ImageInfo::imageType() const { return m_imageType; }
|
||||
|
||||
void ImageInfo::setImageType(ImageType newImageType) {
|
||||
m_imageType = newImageType;
|
||||
}
|
||||
qint32 ImageInfo::imageIndex() const { return m_imageIndex; }
|
||||
|
||||
void ImageInfo::setImageIndex(qint32 newImageIndex) {
|
||||
m_imageIndex = newImageIndex;
|
||||
}
|
||||
QString ImageInfo::imageTag() const { return m_imageTag; }
|
||||
|
||||
void ImageInfo::setImageTag(QString newImageTag) {
|
||||
m_imageTag = newImageTag;
|
||||
}
|
||||
QString ImageInfo::path() const { return m_path; }
|
||||
|
||||
void ImageInfo::setPath(QString newPath) {
|
||||
m_path = newPath;
|
||||
}
|
||||
QString ImageInfo::blurHash() const { return m_blurHash; }
|
||||
|
||||
void ImageInfo::setBlurHash(QString newBlurHash) {
|
||||
m_blurHash = newBlurHash;
|
||||
}
|
||||
qint32 ImageInfo::height() const { return m_height; }
|
||||
|
||||
void ImageInfo::setHeight(qint32 newHeight) {
|
||||
m_height = newHeight;
|
||||
}
|
||||
qint32 ImageInfo::width() const { return m_width; }
|
||||
|
||||
void ImageInfo::setWidth(qint32 newWidth) {
|
||||
m_width = newWidth;
|
||||
}
|
||||
qint64 ImageInfo::size() const { return m_size; }
|
||||
|
||||
void ImageInfo::setSize(qint64 newSize) {
|
||||
m_size = newSize;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageInfo = Jellyfin::DTO::ImageInfo;
|
||||
|
||||
template <>
|
||||
ImageInfo fromJsonValue<ImageInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ImageInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/imageoption.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ImageOption::ImageOption() {}
|
||||
ImageOption::ImageOption(const ImageOption &other) :
|
||||
m_type(other.m_type),
|
||||
m_limit(other.m_limit),
|
||||
m_minWidth(other.m_minWidth){}
|
||||
|
||||
ImageOption ImageOption::fromJson(QJsonObject source) {
|
||||
ImageOption instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ImageOption::setFromJson(QJsonObject source) {
|
||||
m_type = Jellyfin::Support::fromJsonValue<ImageType>(source["Type"]);
|
||||
m_limit = Jellyfin::Support::fromJsonValue<qint32>(source["Limit"]);
|
||||
m_minWidth = Jellyfin::Support::fromJsonValue<qint32>(source["MinWidth"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ImageOption::toJson() {
|
||||
QJsonObject result;
|
||||
result["Type"] = Jellyfin::Support::toJsonValue<ImageType>(m_type);
|
||||
result["Limit"] = Jellyfin::Support::toJsonValue<qint32>(m_limit);
|
||||
result["MinWidth"] = Jellyfin::Support::toJsonValue<qint32>(m_minWidth);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
ImageType ImageOption::type() const { return m_type; }
|
||||
|
||||
void ImageOption::setType(ImageType newType) {
|
||||
m_type = newType;
|
||||
}
|
||||
qint32 ImageOption::limit() const { return m_limit; }
|
||||
|
||||
void ImageOption::setLimit(qint32 newLimit) {
|
||||
m_limit = newLimit;
|
||||
}
|
||||
qint32 ImageOption::minWidth() const { return m_minWidth; }
|
||||
|
||||
void ImageOption::setMinWidth(qint32 newMinWidth) {
|
||||
m_minWidth = newMinWidth;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageOption = Jellyfin::DTO::ImageOption;
|
||||
|
||||
template <>
|
||||
ImageOption fromJsonValue<ImageOption>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ImageOption::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,78 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/imageorientation.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ImageOrientationClass::ImageOrientationClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageOrientation = Jellyfin::DTO::ImageOrientation;
|
||||
|
||||
template <>
|
||||
ImageOrientation fromJsonValue<ImageOrientation>(const QJsonValue &source) {
|
||||
if (!source.isString()) return ImageOrientation::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("TopLeft")) {
|
||||
return ImageOrientation::TopLeft;
|
||||
}
|
||||
if (str == QStringLiteral("TopRight")) {
|
||||
return ImageOrientation::TopRight;
|
||||
}
|
||||
if (str == QStringLiteral("BottomRight")) {
|
||||
return ImageOrientation::BottomRight;
|
||||
}
|
||||
if (str == QStringLiteral("BottomLeft")) {
|
||||
return ImageOrientation::BottomLeft;
|
||||
}
|
||||
if (str == QStringLiteral("LeftTop")) {
|
||||
return ImageOrientation::LeftTop;
|
||||
}
|
||||
if (str == QStringLiteral("RightTop")) {
|
||||
return ImageOrientation::RightTop;
|
||||
}
|
||||
if (str == QStringLiteral("RightBottom")) {
|
||||
return ImageOrientation::RightBottom;
|
||||
}
|
||||
if (str == QStringLiteral("LeftBottom")) {
|
||||
return ImageOrientation::LeftBottom;
|
||||
}
|
||||
|
||||
return ImageOrientation::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,85 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/imageproviderinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ImageProviderInfo::ImageProviderInfo() {}
|
||||
ImageProviderInfo::ImageProviderInfo(const ImageProviderInfo &other) :
|
||||
m_name(other.m_name),
|
||||
m_supportedImages(other.m_supportedImages){}
|
||||
|
||||
ImageProviderInfo ImageProviderInfo::fromJson(QJsonObject source) {
|
||||
ImageProviderInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ImageProviderInfo::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_supportedImages = Jellyfin::Support::fromJsonValue<QList<ImageType>>(source["SupportedImages"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ImageProviderInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["SupportedImages"] = Jellyfin::Support::toJsonValue<QList<ImageType>>(m_supportedImages);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString ImageProviderInfo::name() const { return m_name; }
|
||||
|
||||
void ImageProviderInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QList<ImageType> ImageProviderInfo::supportedImages() const { return m_supportedImages; }
|
||||
|
||||
void ImageProviderInfo::setSupportedImages(QList<ImageType> newSupportedImages) {
|
||||
m_supportedImages = newSupportedImages;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageProviderInfo = Jellyfin::DTO::ImageProviderInfo;
|
||||
|
||||
template <>
|
||||
ImageProviderInfo fromJsonValue<ImageProviderInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ImageProviderInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/imagesavingconvention.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ImageSavingConventionClass::ImageSavingConventionClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageSavingConvention = Jellyfin::DTO::ImageSavingConvention;
|
||||
|
||||
template <>
|
||||
ImageSavingConvention fromJsonValue<ImageSavingConvention>(const QJsonValue &source) {
|
||||
if (!source.isString()) return ImageSavingConvention::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Legacy")) {
|
||||
return ImageSavingConvention::Legacy;
|
||||
}
|
||||
if (str == QStringLiteral("Compatible")) {
|
||||
return ImageSavingConvention::Compatible;
|
||||
}
|
||||
|
||||
return ImageSavingConvention::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/imagetype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ImageTypeClass::ImageTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ImageType = Jellyfin::DTO::ImageType;
|
||||
|
||||
template <>
|
||||
ImageType fromJsonValue<ImageType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return ImageType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Primary")) {
|
||||
return ImageType::Primary;
|
||||
}
|
||||
if (str == QStringLiteral("Art")) {
|
||||
return ImageType::Art;
|
||||
}
|
||||
if (str == QStringLiteral("Backdrop")) {
|
||||
return ImageType::Backdrop;
|
||||
}
|
||||
if (str == QStringLiteral("Banner")) {
|
||||
return ImageType::Banner;
|
||||
}
|
||||
if (str == QStringLiteral("Logo")) {
|
||||
return ImageType::Logo;
|
||||
}
|
||||
if (str == QStringLiteral("Thumb")) {
|
||||
return ImageType::Thumb;
|
||||
}
|
||||
if (str == QStringLiteral("Disc")) {
|
||||
return ImageType::Disc;
|
||||
}
|
||||
if (str == QStringLiteral("Box")) {
|
||||
return ImageType::Box;
|
||||
}
|
||||
if (str == QStringLiteral("Screenshot")) {
|
||||
return ImageType::Screenshot;
|
||||
}
|
||||
if (str == QStringLiteral("Menu")) {
|
||||
return ImageType::Menu;
|
||||
}
|
||||
if (str == QStringLiteral("Chapter")) {
|
||||
return ImageType::Chapter;
|
||||
}
|
||||
if (str == QStringLiteral("BoxRear")) {
|
||||
return ImageType::BoxRear;
|
||||
}
|
||||
if (str == QStringLiteral("Profile")) {
|
||||
return ImageType::Profile;
|
||||
}
|
||||
|
||||
return ImageType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,117 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/installationinfo.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
InstallationInfo::InstallationInfo() {}
|
||||
InstallationInfo::InstallationInfo(const InstallationInfo &other) :
|
||||
m_guid(other.m_guid),
|
||||
m_name(other.m_name),
|
||||
m_version(other.m_version),
|
||||
m_changelog(other.m_changelog),
|
||||
m_sourceUrl(other.m_sourceUrl),
|
||||
m_checksum(other.m_checksum){}
|
||||
|
||||
InstallationInfo InstallationInfo::fromJson(QJsonObject source) {
|
||||
InstallationInfo instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void InstallationInfo::setFromJson(QJsonObject source) {
|
||||
m_guid = Jellyfin::Support::fromJsonValue<QUuid>(source["Guid"]);
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_version = Jellyfin::Support::fromJsonValue<QSharedPointer<Version>>(source["Version"]);
|
||||
m_changelog = Jellyfin::Support::fromJsonValue<QString>(source["Changelog"]);
|
||||
m_sourceUrl = Jellyfin::Support::fromJsonValue<QString>(source["SourceUrl"]);
|
||||
m_checksum = Jellyfin::Support::fromJsonValue<QString>(source["Checksum"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject InstallationInfo::toJson() {
|
||||
QJsonObject result;
|
||||
result["Guid"] = Jellyfin::Support::toJsonValue<QUuid>(m_guid);
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Version"] = Jellyfin::Support::toJsonValue<QSharedPointer<Version>>(m_version);
|
||||
result["Changelog"] = Jellyfin::Support::toJsonValue<QString>(m_changelog);
|
||||
result["SourceUrl"] = Jellyfin::Support::toJsonValue<QString>(m_sourceUrl);
|
||||
result["Checksum"] = Jellyfin::Support::toJsonValue<QString>(m_checksum);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QUuid InstallationInfo::guid() const { return m_guid; }
|
||||
|
||||
void InstallationInfo::setGuid(QUuid newGuid) {
|
||||
m_guid = newGuid;
|
||||
}
|
||||
QString InstallationInfo::name() const { return m_name; }
|
||||
|
||||
void InstallationInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QSharedPointer<Version> InstallationInfo::version() const { return m_version; }
|
||||
|
||||
void InstallationInfo::setVersion(QSharedPointer<Version> newVersion) {
|
||||
m_version = newVersion;
|
||||
}
|
||||
QString InstallationInfo::changelog() const { return m_changelog; }
|
||||
|
||||
void InstallationInfo::setChangelog(QString newChangelog) {
|
||||
m_changelog = newChangelog;
|
||||
}
|
||||
QString InstallationInfo::sourceUrl() const { return m_sourceUrl; }
|
||||
|
||||
void InstallationInfo::setSourceUrl(QString newSourceUrl) {
|
||||
m_sourceUrl = newSourceUrl;
|
||||
}
|
||||
QString InstallationInfo::checksum() const { return m_checksum; }
|
||||
|
||||
void InstallationInfo::setChecksum(QString newChecksum) {
|
||||
m_checksum = newChecksum;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using InstallationInfo = Jellyfin::DTO::InstallationInfo;
|
||||
|
||||
template <>
|
||||
InstallationInfo fromJsonValue<InstallationInfo>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return InstallationInfo::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,125 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/iplugin.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
IPlugin::IPlugin() {}
|
||||
IPlugin::IPlugin(const IPlugin &other) :
|
||||
m_name(other.m_name),
|
||||
m_description(other.m_description),
|
||||
m_jellyfinId(other.m_jellyfinId),
|
||||
m_version(other.m_version),
|
||||
m_assemblyFilePath(other.m_assemblyFilePath),
|
||||
m_canUninstall(other.m_canUninstall),
|
||||
m_dataFolderPath(other.m_dataFolderPath){}
|
||||
|
||||
IPlugin IPlugin::fromJson(QJsonObject source) {
|
||||
IPlugin instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void IPlugin::setFromJson(QJsonObject source) {
|
||||
m_name = Jellyfin::Support::fromJsonValue<QString>(source["Name"]);
|
||||
m_description = Jellyfin::Support::fromJsonValue<QString>(source["Description"]);
|
||||
m_jellyfinId = Jellyfin::Support::fromJsonValue<QUuid>(source["Id"]);
|
||||
m_version = Jellyfin::Support::fromJsonValue<QSharedPointer<Version>>(source["Version"]);
|
||||
m_assemblyFilePath = Jellyfin::Support::fromJsonValue<QString>(source["AssemblyFilePath"]);
|
||||
m_canUninstall = Jellyfin::Support::fromJsonValue<bool>(source["CanUninstall"]);
|
||||
m_dataFolderPath = Jellyfin::Support::fromJsonValue<QString>(source["DataFolderPath"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject IPlugin::toJson() {
|
||||
QJsonObject result;
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Description"] = Jellyfin::Support::toJsonValue<QString>(m_description);
|
||||
result["Id"] = Jellyfin::Support::toJsonValue<QUuid>(m_jellyfinId);
|
||||
result["Version"] = Jellyfin::Support::toJsonValue<QSharedPointer<Version>>(m_version);
|
||||
result["AssemblyFilePath"] = Jellyfin::Support::toJsonValue<QString>(m_assemblyFilePath);
|
||||
result["CanUninstall"] = Jellyfin::Support::toJsonValue<bool>(m_canUninstall);
|
||||
result["DataFolderPath"] = Jellyfin::Support::toJsonValue<QString>(m_dataFolderPath);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QString IPlugin::name() const { return m_name; }
|
||||
|
||||
void IPlugin::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
QString IPlugin::description() const { return m_description; }
|
||||
|
||||
void IPlugin::setDescription(QString newDescription) {
|
||||
m_description = newDescription;
|
||||
}
|
||||
QUuid IPlugin::jellyfinId() const { return m_jellyfinId; }
|
||||
|
||||
void IPlugin::setJellyfinId(QUuid newJellyfinId) {
|
||||
m_jellyfinId = newJellyfinId;
|
||||
}
|
||||
QSharedPointer<Version> IPlugin::version() const { return m_version; }
|
||||
|
||||
void IPlugin::setVersion(QSharedPointer<Version> newVersion) {
|
||||
m_version = newVersion;
|
||||
}
|
||||
QString IPlugin::assemblyFilePath() const { return m_assemblyFilePath; }
|
||||
|
||||
void IPlugin::setAssemblyFilePath(QString newAssemblyFilePath) {
|
||||
m_assemblyFilePath = newAssemblyFilePath;
|
||||
}
|
||||
bool IPlugin::canUninstall() const { return m_canUninstall; }
|
||||
|
||||
void IPlugin::setCanUninstall(bool newCanUninstall) {
|
||||
m_canUninstall = newCanUninstall;
|
||||
}
|
||||
QString IPlugin::dataFolderPath() const { return m_dataFolderPath; }
|
||||
|
||||
void IPlugin::setDataFolderPath(QString newDataFolderPath) {
|
||||
m_dataFolderPath = newDataFolderPath;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using IPlugin = Jellyfin::DTO::IPlugin;
|
||||
|
||||
template <>
|
||||
IPlugin fromJsonValue<IPlugin>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return IPlugin::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/isotype.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
IsoTypeClass::IsoTypeClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using IsoType = Jellyfin::DTO::IsoType;
|
||||
|
||||
template <>
|
||||
IsoType fromJsonValue<IsoType>(const QJsonValue &source) {
|
||||
if (!source.isString()) return IsoType::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("Dvd")) {
|
||||
return IsoType::Dvd;
|
||||
}
|
||||
if (str == QStringLiteral("BluRay")) {
|
||||
return IsoType::BluRay;
|
||||
}
|
||||
|
||||
return IsoType::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,165 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/itemcounts.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ItemCounts::ItemCounts() {}
|
||||
ItemCounts::ItemCounts(const ItemCounts &other) :
|
||||
m_movieCount(other.m_movieCount),
|
||||
m_seriesCount(other.m_seriesCount),
|
||||
m_episodeCount(other.m_episodeCount),
|
||||
m_artistCount(other.m_artistCount),
|
||||
m_programCount(other.m_programCount),
|
||||
m_trailerCount(other.m_trailerCount),
|
||||
m_songCount(other.m_songCount),
|
||||
m_albumCount(other.m_albumCount),
|
||||
m_musicVideoCount(other.m_musicVideoCount),
|
||||
m_boxSetCount(other.m_boxSetCount),
|
||||
m_bookCount(other.m_bookCount),
|
||||
m_itemCount(other.m_itemCount){}
|
||||
|
||||
ItemCounts ItemCounts::fromJson(QJsonObject source) {
|
||||
ItemCounts instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void ItemCounts::setFromJson(QJsonObject source) {
|
||||
m_movieCount = Jellyfin::Support::fromJsonValue<qint32>(source["MovieCount"]);
|
||||
m_seriesCount = Jellyfin::Support::fromJsonValue<qint32>(source["SeriesCount"]);
|
||||
m_episodeCount = Jellyfin::Support::fromJsonValue<qint32>(source["EpisodeCount"]);
|
||||
m_artistCount = Jellyfin::Support::fromJsonValue<qint32>(source["ArtistCount"]);
|
||||
m_programCount = Jellyfin::Support::fromJsonValue<qint32>(source["ProgramCount"]);
|
||||
m_trailerCount = Jellyfin::Support::fromJsonValue<qint32>(source["TrailerCount"]);
|
||||
m_songCount = Jellyfin::Support::fromJsonValue<qint32>(source["SongCount"]);
|
||||
m_albumCount = Jellyfin::Support::fromJsonValue<qint32>(source["AlbumCount"]);
|
||||
m_musicVideoCount = Jellyfin::Support::fromJsonValue<qint32>(source["MusicVideoCount"]);
|
||||
m_boxSetCount = Jellyfin::Support::fromJsonValue<qint32>(source["BoxSetCount"]);
|
||||
m_bookCount = Jellyfin::Support::fromJsonValue<qint32>(source["BookCount"]);
|
||||
m_itemCount = Jellyfin::Support::fromJsonValue<qint32>(source["ItemCount"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject ItemCounts::toJson() {
|
||||
QJsonObject result;
|
||||
result["MovieCount"] = Jellyfin::Support::toJsonValue<qint32>(m_movieCount);
|
||||
result["SeriesCount"] = Jellyfin::Support::toJsonValue<qint32>(m_seriesCount);
|
||||
result["EpisodeCount"] = Jellyfin::Support::toJsonValue<qint32>(m_episodeCount);
|
||||
result["ArtistCount"] = Jellyfin::Support::toJsonValue<qint32>(m_artistCount);
|
||||
result["ProgramCount"] = Jellyfin::Support::toJsonValue<qint32>(m_programCount);
|
||||
result["TrailerCount"] = Jellyfin::Support::toJsonValue<qint32>(m_trailerCount);
|
||||
result["SongCount"] = Jellyfin::Support::toJsonValue<qint32>(m_songCount);
|
||||
result["AlbumCount"] = Jellyfin::Support::toJsonValue<qint32>(m_albumCount);
|
||||
result["MusicVideoCount"] = Jellyfin::Support::toJsonValue<qint32>(m_musicVideoCount);
|
||||
result["BoxSetCount"] = Jellyfin::Support::toJsonValue<qint32>(m_boxSetCount);
|
||||
result["BookCount"] = Jellyfin::Support::toJsonValue<qint32>(m_bookCount);
|
||||
result["ItemCount"] = Jellyfin::Support::toJsonValue<qint32>(m_itemCount);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
qint32 ItemCounts::movieCount() const { return m_movieCount; }
|
||||
|
||||
void ItemCounts::setMovieCount(qint32 newMovieCount) {
|
||||
m_movieCount = newMovieCount;
|
||||
}
|
||||
qint32 ItemCounts::seriesCount() const { return m_seriesCount; }
|
||||
|
||||
void ItemCounts::setSeriesCount(qint32 newSeriesCount) {
|
||||
m_seriesCount = newSeriesCount;
|
||||
}
|
||||
qint32 ItemCounts::episodeCount() const { return m_episodeCount; }
|
||||
|
||||
void ItemCounts::setEpisodeCount(qint32 newEpisodeCount) {
|
||||
m_episodeCount = newEpisodeCount;
|
||||
}
|
||||
qint32 ItemCounts::artistCount() const { return m_artistCount; }
|
||||
|
||||
void ItemCounts::setArtistCount(qint32 newArtistCount) {
|
||||
m_artistCount = newArtistCount;
|
||||
}
|
||||
qint32 ItemCounts::programCount() const { return m_programCount; }
|
||||
|
||||
void ItemCounts::setProgramCount(qint32 newProgramCount) {
|
||||
m_programCount = newProgramCount;
|
||||
}
|
||||
qint32 ItemCounts::trailerCount() const { return m_trailerCount; }
|
||||
|
||||
void ItemCounts::setTrailerCount(qint32 newTrailerCount) {
|
||||
m_trailerCount = newTrailerCount;
|
||||
}
|
||||
qint32 ItemCounts::songCount() const { return m_songCount; }
|
||||
|
||||
void ItemCounts::setSongCount(qint32 newSongCount) {
|
||||
m_songCount = newSongCount;
|
||||
}
|
||||
qint32 ItemCounts::albumCount() const { return m_albumCount; }
|
||||
|
||||
void ItemCounts::setAlbumCount(qint32 newAlbumCount) {
|
||||
m_albumCount = newAlbumCount;
|
||||
}
|
||||
qint32 ItemCounts::musicVideoCount() const { return m_musicVideoCount; }
|
||||
|
||||
void ItemCounts::setMusicVideoCount(qint32 newMusicVideoCount) {
|
||||
m_musicVideoCount = newMusicVideoCount;
|
||||
}
|
||||
qint32 ItemCounts::boxSetCount() const { return m_boxSetCount; }
|
||||
|
||||
void ItemCounts::setBoxSetCount(qint32 newBoxSetCount) {
|
||||
m_boxSetCount = newBoxSetCount;
|
||||
}
|
||||
qint32 ItemCounts::bookCount() const { return m_bookCount; }
|
||||
|
||||
void ItemCounts::setBookCount(qint32 newBookCount) {
|
||||
m_bookCount = newBookCount;
|
||||
}
|
||||
qint32 ItemCounts::itemCount() const { return m_itemCount; }
|
||||
|
||||
void ItemCounts::setItemCount(qint32 newItemCount) {
|
||||
m_itemCount = newItemCount;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ItemCounts = Jellyfin::DTO::ItemCounts;
|
||||
|
||||
template <>
|
||||
ItemCounts fromJsonValue<ItemCounts>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return ItemCounts::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,237 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/itemfields.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ItemFieldsClass::ItemFieldsClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ItemFields = Jellyfin::DTO::ItemFields;
|
||||
|
||||
template <>
|
||||
ItemFields fromJsonValue<ItemFields>(const QJsonValue &source) {
|
||||
if (!source.isString()) return ItemFields::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("AirTime")) {
|
||||
return ItemFields::AirTime;
|
||||
}
|
||||
if (str == QStringLiteral("CanDelete")) {
|
||||
return ItemFields::CanDelete;
|
||||
}
|
||||
if (str == QStringLiteral("CanDownload")) {
|
||||
return ItemFields::CanDownload;
|
||||
}
|
||||
if (str == QStringLiteral("ChannelInfo")) {
|
||||
return ItemFields::ChannelInfo;
|
||||
}
|
||||
if (str == QStringLiteral("Chapters")) {
|
||||
return ItemFields::Chapters;
|
||||
}
|
||||
if (str == QStringLiteral("ChildCount")) {
|
||||
return ItemFields::ChildCount;
|
||||
}
|
||||
if (str == QStringLiteral("CumulativeRunTimeTicks")) {
|
||||
return ItemFields::CumulativeRunTimeTicks;
|
||||
}
|
||||
if (str == QStringLiteral("CustomRating")) {
|
||||
return ItemFields::CustomRating;
|
||||
}
|
||||
if (str == QStringLiteral("DateCreated")) {
|
||||
return ItemFields::DateCreated;
|
||||
}
|
||||
if (str == QStringLiteral("DateLastMediaAdded")) {
|
||||
return ItemFields::DateLastMediaAdded;
|
||||
}
|
||||
if (str == QStringLiteral("DisplayPreferencesId")) {
|
||||
return ItemFields::DisplayPreferencesId;
|
||||
}
|
||||
if (str == QStringLiteral("Etag")) {
|
||||
return ItemFields::Etag;
|
||||
}
|
||||
if (str == QStringLiteral("ExternalUrls")) {
|
||||
return ItemFields::ExternalUrls;
|
||||
}
|
||||
if (str == QStringLiteral("Genres")) {
|
||||
return ItemFields::Genres;
|
||||
}
|
||||
if (str == QStringLiteral("HomePageUrl")) {
|
||||
return ItemFields::HomePageUrl;
|
||||
}
|
||||
if (str == QStringLiteral("ItemCounts")) {
|
||||
return ItemFields::ItemCounts;
|
||||
}
|
||||
if (str == QStringLiteral("MediaSourceCount")) {
|
||||
return ItemFields::MediaSourceCount;
|
||||
}
|
||||
if (str == QStringLiteral("MediaSources")) {
|
||||
return ItemFields::MediaSources;
|
||||
}
|
||||
if (str == QStringLiteral("OriginalTitle")) {
|
||||
return ItemFields::OriginalTitle;
|
||||
}
|
||||
if (str == QStringLiteral("Overview")) {
|
||||
return ItemFields::Overview;
|
||||
}
|
||||
if (str == QStringLiteral("ParentId")) {
|
||||
return ItemFields::ParentId;
|
||||
}
|
||||
if (str == QStringLiteral("Path")) {
|
||||
return ItemFields::Path;
|
||||
}
|
||||
if (str == QStringLiteral("People")) {
|
||||
return ItemFields::People;
|
||||
}
|
||||
if (str == QStringLiteral("PlayAccess")) {
|
||||
return ItemFields::PlayAccess;
|
||||
}
|
||||
if (str == QStringLiteral("ProductionLocations")) {
|
||||
return ItemFields::ProductionLocations;
|
||||
}
|
||||
if (str == QStringLiteral("ProviderIds")) {
|
||||
return ItemFields::ProviderIds;
|
||||
}
|
||||
if (str == QStringLiteral("PrimaryImageAspectRatio")) {
|
||||
return ItemFields::PrimaryImageAspectRatio;
|
||||
}
|
||||
if (str == QStringLiteral("RecursiveItemCount")) {
|
||||
return ItemFields::RecursiveItemCount;
|
||||
}
|
||||
if (str == QStringLiteral("Settings")) {
|
||||
return ItemFields::Settings;
|
||||
}
|
||||
if (str == QStringLiteral("ScreenshotImageTags")) {
|
||||
return ItemFields::ScreenshotImageTags;
|
||||
}
|
||||
if (str == QStringLiteral("SeriesPrimaryImage")) {
|
||||
return ItemFields::SeriesPrimaryImage;
|
||||
}
|
||||
if (str == QStringLiteral("SeriesStudio")) {
|
||||
return ItemFields::SeriesStudio;
|
||||
}
|
||||
if (str == QStringLiteral("SortName")) {
|
||||
return ItemFields::SortName;
|
||||
}
|
||||
if (str == QStringLiteral("SpecialEpisodeNumbers")) {
|
||||
return ItemFields::SpecialEpisodeNumbers;
|
||||
}
|
||||
if (str == QStringLiteral("Studios")) {
|
||||
return ItemFields::Studios;
|
||||
}
|
||||
if (str == QStringLiteral("BasicSyncInfo")) {
|
||||
return ItemFields::BasicSyncInfo;
|
||||
}
|
||||
if (str == QStringLiteral("SyncInfo")) {
|
||||
return ItemFields::SyncInfo;
|
||||
}
|
||||
if (str == QStringLiteral("Taglines")) {
|
||||
return ItemFields::Taglines;
|
||||
}
|
||||
if (str == QStringLiteral("Tags")) {
|
||||
return ItemFields::Tags;
|
||||
}
|
||||
if (str == QStringLiteral("RemoteTrailers")) {
|
||||
return ItemFields::RemoteTrailers;
|
||||
}
|
||||
if (str == QStringLiteral("MediaStreams")) {
|
||||
return ItemFields::MediaStreams;
|
||||
}
|
||||
if (str == QStringLiteral("SeasonUserData")) {
|
||||
return ItemFields::SeasonUserData;
|
||||
}
|
||||
if (str == QStringLiteral("ServiceName")) {
|
||||
return ItemFields::ServiceName;
|
||||
}
|
||||
if (str == QStringLiteral("ThemeSongIds")) {
|
||||
return ItemFields::ThemeSongIds;
|
||||
}
|
||||
if (str == QStringLiteral("ThemeVideoIds")) {
|
||||
return ItemFields::ThemeVideoIds;
|
||||
}
|
||||
if (str == QStringLiteral("ExternalEtag")) {
|
||||
return ItemFields::ExternalEtag;
|
||||
}
|
||||
if (str == QStringLiteral("PresentationUniqueKey")) {
|
||||
return ItemFields::PresentationUniqueKey;
|
||||
}
|
||||
if (str == QStringLiteral("InheritedParentalRatingValue")) {
|
||||
return ItemFields::InheritedParentalRatingValue;
|
||||
}
|
||||
if (str == QStringLiteral("ExternalSeriesId")) {
|
||||
return ItemFields::ExternalSeriesId;
|
||||
}
|
||||
if (str == QStringLiteral("SeriesPresentationUniqueKey")) {
|
||||
return ItemFields::SeriesPresentationUniqueKey;
|
||||
}
|
||||
if (str == QStringLiteral("DateLastRefreshed")) {
|
||||
return ItemFields::DateLastRefreshed;
|
||||
}
|
||||
if (str == QStringLiteral("DateLastSaved")) {
|
||||
return ItemFields::DateLastSaved;
|
||||
}
|
||||
if (str == QStringLiteral("RefreshState")) {
|
||||
return ItemFields::RefreshState;
|
||||
}
|
||||
if (str == QStringLiteral("ChannelImage")) {
|
||||
return ItemFields::ChannelImage;
|
||||
}
|
||||
if (str == QStringLiteral("EnableMediaSourceDisplay")) {
|
||||
return ItemFields::EnableMediaSourceDisplay;
|
||||
}
|
||||
if (str == QStringLiteral("Width")) {
|
||||
return ItemFields::Width;
|
||||
}
|
||||
if (str == QStringLiteral("Height")) {
|
||||
return ItemFields::Height;
|
||||
}
|
||||
if (str == QStringLiteral("ExtraIds")) {
|
||||
return ItemFields::ExtraIds;
|
||||
}
|
||||
if (str == QStringLiteral("LocalTrailerCount")) {
|
||||
return ItemFields::LocalTrailerCount;
|
||||
}
|
||||
if (str == QStringLiteral("IsHD")) {
|
||||
return ItemFields::IsHD;
|
||||
}
|
||||
if (str == QStringLiteral("SpecialFeatureCount")) {
|
||||
return ItemFields::SpecialFeatureCount;
|
||||
}
|
||||
|
||||
return ItemFields::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/itemfilter.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
ItemFilterClass::ItemFilterClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using ItemFilter = Jellyfin::DTO::ItemFilter;
|
||||
|
||||
template <>
|
||||
ItemFilter fromJsonValue<ItemFilter>(const QJsonValue &source) {
|
||||
if (!source.isString()) return ItemFilter::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("IsFolder")) {
|
||||
return ItemFilter::IsFolder;
|
||||
}
|
||||
if (str == QStringLiteral("IsNotFolder")) {
|
||||
return ItemFilter::IsNotFolder;
|
||||
}
|
||||
if (str == QStringLiteral("IsUnplayed")) {
|
||||
return ItemFilter::IsUnplayed;
|
||||
}
|
||||
if (str == QStringLiteral("IsPlayed")) {
|
||||
return ItemFilter::IsPlayed;
|
||||
}
|
||||
if (str == QStringLiteral("IsFavorite")) {
|
||||
return ItemFilter::IsFavorite;
|
||||
}
|
||||
if (str == QStringLiteral("IsResumable")) {
|
||||
return ItemFilter::IsResumable;
|
||||
}
|
||||
if (str == QStringLiteral("Likes")) {
|
||||
return ItemFilter::Likes;
|
||||
}
|
||||
if (str == QStringLiteral("Dislikes")) {
|
||||
return ItemFilter::Dislikes;
|
||||
}
|
||||
if (str == QStringLiteral("IsFavoriteOrLikes")) {
|
||||
return ItemFilter::IsFavoriteOrLikes;
|
||||
}
|
||||
|
||||
return ItemFilter::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/joingrouprequestdto.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
JoinGroupRequestDto::JoinGroupRequestDto() {}
|
||||
JoinGroupRequestDto::JoinGroupRequestDto(const JoinGroupRequestDto &other) :
|
||||
m_groupId(other.m_groupId){}
|
||||
|
||||
JoinGroupRequestDto JoinGroupRequestDto::fromJson(QJsonObject source) {
|
||||
JoinGroupRequestDto instance;
|
||||
instance.setFromJson(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
void JoinGroupRequestDto::setFromJson(QJsonObject source) {
|
||||
m_groupId = Jellyfin::Support::fromJsonValue<QUuid>(source["GroupId"]);
|
||||
|
||||
}
|
||||
|
||||
QJsonObject JoinGroupRequestDto::toJson() {
|
||||
QJsonObject result;
|
||||
result["GroupId"] = Jellyfin::Support::toJsonValue<QUuid>(m_groupId);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
QUuid JoinGroupRequestDto::groupId() const { return m_groupId; }
|
||||
|
||||
void JoinGroupRequestDto::setGroupId(QUuid newGroupId) {
|
||||
m_groupId = newGroupId;
|
||||
}
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using JoinGroupRequestDto = Jellyfin::DTO::JoinGroupRequestDto;
|
||||
|
||||
template <>
|
||||
JoinGroupRequestDto fromJsonValue<JoinGroupRequestDto>(const QJsonValue &source) {
|
||||
if (!source.isObject()) throw new ParseException("Expected JSON Object");
|
||||
return JoinGroupRequestDto::fromJson(source.toObject());
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
/*
|
||||
* Sailfin: a Jellyfin client written using Qt
|
||||
* Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
|
||||
* OVERWRITTEN AT SOME POINT!
|
||||
*
|
||||
* If there is a bug in this file, please fix the code generator used to generate this file found in
|
||||
* core/openapigenerator.d.
|
||||
*
|
||||
* This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
|
||||
* file with a newer file if needed instead of manually updating the files.
|
||||
*/
|
||||
|
||||
#include <JellyfinQt/DTO/keepuntil.h>
|
||||
|
||||
namespace Jellyfin {
|
||||
namespace DTO {
|
||||
|
||||
KeepUntilClass::KeepUntilClass() {}
|
||||
|
||||
|
||||
} // NS DTO
|
||||
|
||||
namespace Support {
|
||||
|
||||
using KeepUntil = Jellyfin::DTO::KeepUntil;
|
||||
|
||||
template <>
|
||||
KeepUntil fromJsonValue<KeepUntil>(const QJsonValue &source) {
|
||||
if (!source.isString()) return KeepUntil::EnumNotSet;
|
||||
|
||||
QString str = source.toString();
|
||||
if (str == QStringLiteral("UntilDeleted")) {
|
||||
return KeepUntil::UntilDeleted;
|
||||
}
|
||||
if (str == QStringLiteral("UntilSpaceNeeded")) {
|
||||
return KeepUntil::UntilSpaceNeeded;
|
||||
}
|
||||
if (str == QStringLiteral("UntilWatched")) {
|
||||
return KeepUntil::UntilWatched;
|
||||
}
|
||||
if (str == QStringLiteral("UntilDate")) {
|
||||
return KeepUntil::UntilDate;
|
||||
}
|
||||
|
||||
return KeepUntil::EnumNotSet;
|
||||
}
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue