mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-06 10:32:44 +00:00
WIP: autogenerate models based on OpenAPI
This commit is contained in:
parent
4ed6a8a42d
commit
40d8793bd8
553 changed files with 50785 additions and 1500 deletions
131
core/src/DTO/albuminfo.cpp
Normal file
131
core/src/DTO/albuminfo.cpp
Normal file
|
@ -0,0 +1,131 @@
|
|||
/*
|
||||
* 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(QObject *parent) : QObject(parent) {}
|
||||
|
||||
AlbumInfo *AlbumInfo::fromJSON(QJsonObject source, QObject *parent) {
|
||||
AlbumInfo *instance = new AlbumInfo(parent);
|
||||
instance->updateFromJSON(source);
|
||||
return instance;
|
||||
}
|
||||
|
||||
void AlbumInfo::updateFromJSON(QJsonObject source) {
|
||||
Q_UNIMPLEMENTED();
|
||||
}
|
||||
QJsonObject AlbumInfo::toJSON() {
|
||||
Q_UNIMPLEMENTED();
|
||||
QJsonObject result;
|
||||
return result;
|
||||
}
|
||||
QString AlbumInfo::name() const { return m_name; }
|
||||
void AlbumInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
emit nameChanged(newName);
|
||||
}
|
||||
|
||||
QString AlbumInfo::path() const { return m_path; }
|
||||
void AlbumInfo::setPath(QString newPath) {
|
||||
m_path = newPath;
|
||||
emit pathChanged(newPath);
|
||||
}
|
||||
|
||||
QString AlbumInfo::metadataLanguage() const { return m_metadataLanguage; }
|
||||
void AlbumInfo::setMetadataLanguage(QString newMetadataLanguage) {
|
||||
m_metadataLanguage = newMetadataLanguage;
|
||||
emit metadataLanguageChanged(newMetadataLanguage);
|
||||
}
|
||||
|
||||
QString AlbumInfo::metadataCountryCode() const { return m_metadataCountryCode; }
|
||||
void AlbumInfo::setMetadataCountryCode(QString newMetadataCountryCode) {
|
||||
m_metadataCountryCode = newMetadataCountryCode;
|
||||
emit metadataCountryCodeChanged(newMetadataCountryCode);
|
||||
}
|
||||
|
||||
QJsonObject AlbumInfo::providerIds() const { return m_providerIds; }
|
||||
void AlbumInfo::setProviderIds(QJsonObject newProviderIds) {
|
||||
m_providerIds = newProviderIds;
|
||||
emit providerIdsChanged(newProviderIds);
|
||||
}
|
||||
|
||||
qint32 AlbumInfo::year() const { return m_year; }
|
||||
void AlbumInfo::setYear(qint32 newYear) {
|
||||
m_year = newYear;
|
||||
emit yearChanged(newYear);
|
||||
}
|
||||
|
||||
qint32 AlbumInfo::indexNumber() const { return m_indexNumber; }
|
||||
void AlbumInfo::setIndexNumber(qint32 newIndexNumber) {
|
||||
m_indexNumber = newIndexNumber;
|
||||
emit indexNumberChanged(newIndexNumber);
|
||||
}
|
||||
|
||||
qint32 AlbumInfo::parentIndexNumber() const { return m_parentIndexNumber; }
|
||||
void AlbumInfo::setParentIndexNumber(qint32 newParentIndexNumber) {
|
||||
m_parentIndexNumber = newParentIndexNumber;
|
||||
emit parentIndexNumberChanged(newParentIndexNumber);
|
||||
}
|
||||
|
||||
QDateTime AlbumInfo::premiereDate() const { return m_premiereDate; }
|
||||
void AlbumInfo::setPremiereDate(QDateTime newPremiereDate) {
|
||||
m_premiereDate = newPremiereDate;
|
||||
emit premiereDateChanged(newPremiereDate);
|
||||
}
|
||||
|
||||
bool AlbumInfo::isAutomated() const { return m_isAutomated; }
|
||||
void AlbumInfo::setIsAutomated(bool newIsAutomated) {
|
||||
m_isAutomated = newIsAutomated;
|
||||
emit isAutomatedChanged(newIsAutomated);
|
||||
}
|
||||
|
||||
QStringList AlbumInfo::albumArtists() const { return m_albumArtists; }
|
||||
void AlbumInfo::setAlbumArtists(QStringList newAlbumArtists) {
|
||||
m_albumArtists = newAlbumArtists;
|
||||
emit albumArtistsChanged(newAlbumArtists);
|
||||
}
|
||||
|
||||
QJsonObject AlbumInfo::artistProviderIds() const { return m_artistProviderIds; }
|
||||
void AlbumInfo::setArtistProviderIds(QJsonObject newArtistProviderIds) {
|
||||
m_artistProviderIds = newArtistProviderIds;
|
||||
emit artistProviderIdsChanged(newArtistProviderIds);
|
||||
}
|
||||
|
||||
QList<SongInfo *> AlbumInfo::songInfos() const { return m_songInfos; }
|
||||
void AlbumInfo::setSongInfos(QList<SongInfo *> newSongInfos) {
|
||||
m_songInfos = newSongInfos;
|
||||
emit songInfosChanged(newSongInfos);
|
||||
}
|
||||
|
||||
|
||||
} // NS Jellyfin
|
||||
} // NS DTO
|
Loading…
Add table
Add a link
Reference in a new issue