2021-02-21 04:02:05 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef JELLYFIN_DTO_TIMERINFODTO_H
|
|
|
|
#define JELLYFIN_DTO_TIMERINFODTO_H
|
|
|
|
|
|
|
|
#include <QDateTime>
|
|
|
|
#include <QJsonObject>
|
2021-03-20 02:30:50 +00:00
|
|
|
#include <QJsonValue>
|
2021-02-21 04:02:05 +00:00
|
|
|
#include <QList>
|
2021-03-20 02:30:50 +00:00
|
|
|
#include <QSharedPointer>
|
2021-02-21 04:02:05 +00:00
|
|
|
#include <QString>
|
|
|
|
#include <QStringList>
|
2021-03-20 02:30:50 +00:00
|
|
|
#include <QUuid>
|
|
|
|
#include <optional>
|
2021-02-21 04:02:05 +00:00
|
|
|
|
2021-03-20 02:30:50 +00:00
|
|
|
#include "JellyfinQt/DTO/baseitemdto.h"
|
2021-02-21 04:02:05 +00:00
|
|
|
#include "JellyfinQt/DTO/keepuntil.h"
|
|
|
|
#include "JellyfinQt/DTO/recordingstatus.h"
|
2021-03-20 02:30:50 +00:00
|
|
|
#include "JellyfinQt/support/jsonconv.h"
|
2021-02-21 04:02:05 +00:00
|
|
|
|
|
|
|
namespace Jellyfin {
|
|
|
|
namespace DTO {
|
|
|
|
|
|
|
|
|
2021-03-20 02:30:50 +00:00
|
|
|
class TimerInfoDto {
|
2021-03-24 19:04:03 +00:00
|
|
|
public:TimerInfoDto();TimerInfoDto(const TimerInfoDto &other);
|
|
|
|
|
2021-03-20 02:30:50 +00:00
|
|
|
static TimerInfoDto fromJson(QJsonObject source);
|
|
|
|
void setFromJson(QJsonObject source);
|
|
|
|
QJsonObject toJson();
|
|
|
|
|
|
|
|
// Properties
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief Id of the recording.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QString jellyfinId() const;
|
|
|
|
/**
|
|
|
|
* @brief Id of the recording.
|
|
|
|
*/
|
|
|
|
void setJellyfinId(QString newJellyfinId);
|
|
|
|
|
|
|
|
QString type() const;
|
|
|
|
|
|
|
|
void setType(QString newType);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the server identifier.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QString serverId() const;
|
|
|
|
/**
|
|
|
|
* @brief Gets or sets the server identifier.
|
|
|
|
*/
|
|
|
|
void setServerId(QString newServerId);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the external identifier.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QString externalId() const;
|
|
|
|
/**
|
|
|
|
* @brief Gets or sets the external identifier.
|
|
|
|
*/
|
|
|
|
void setExternalId(QString newExternalId);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief ChannelId of the recording.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QUuid channelId() const;
|
|
|
|
/**
|
|
|
|
* @brief ChannelId of the recording.
|
|
|
|
*/
|
|
|
|
void setChannelId(QUuid newChannelId);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the external channel identifier.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QString externalChannelId() const;
|
|
|
|
/**
|
|
|
|
* @brief Gets or sets the external channel identifier.
|
|
|
|
*/
|
|
|
|
void setExternalChannelId(QString newExternalChannelId);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief ChannelName of the recording.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QString channelName() const;
|
|
|
|
/**
|
|
|
|
* @brief ChannelName of the recording.
|
|
|
|
*/
|
|
|
|
void setChannelName(QString newChannelName);
|
|
|
|
|
|
|
|
QString channelPrimaryImageTag() const;
|
|
|
|
|
|
|
|
void setChannelPrimaryImageTag(QString newChannelPrimaryImageTag);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the program identifier.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QString programId() const;
|
|
|
|
/**
|
|
|
|
* @brief Gets or sets the program identifier.
|
|
|
|
*/
|
|
|
|
void setProgramId(QString newProgramId);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the external program identifier.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QString externalProgramId() const;
|
|
|
|
/**
|
|
|
|
* @brief Gets or sets the external program identifier.
|
|
|
|
*/
|
|
|
|
void setExternalProgramId(QString newExternalProgramId);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief Name of the recording.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QString name() const;
|
|
|
|
/**
|
|
|
|
* @brief Name of the recording.
|
|
|
|
*/
|
|
|
|
void setName(QString newName);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief Description of the recording.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QString overview() const;
|
|
|
|
/**
|
|
|
|
* @brief Description of the recording.
|
|
|
|
*/
|
|
|
|
void setOverview(QString newOverview);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief The start date of the recording, in UTC.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QDateTime startDate() const;
|
|
|
|
/**
|
|
|
|
* @brief The start date of the recording, in UTC.
|
|
|
|
*/
|
|
|
|
void setStartDate(QDateTime newStartDate);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief The end date of the recording, in UTC.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QDateTime endDate() const;
|
|
|
|
/**
|
|
|
|
* @brief The end date of the recording, in UTC.
|
|
|
|
*/
|
|
|
|
void setEndDate(QDateTime newEndDate);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the name of the service.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QString serviceName() const;
|
|
|
|
/**
|
|
|
|
* @brief Gets or sets the name of the service.
|
|
|
|
*/
|
|
|
|
void setServiceName(QString newServiceName);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the priority.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
qint32 priority() const;
|
|
|
|
/**
|
|
|
|
* @brief Gets or sets the priority.
|
|
|
|
*/
|
|
|
|
void setPriority(qint32 newPriority);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the pre padding seconds.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
qint32 prePaddingSeconds() const;
|
|
|
|
/**
|
|
|
|
* @brief Gets or sets the pre padding seconds.
|
|
|
|
*/
|
|
|
|
void setPrePaddingSeconds(qint32 newPrePaddingSeconds);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the post padding seconds.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
qint32 postPaddingSeconds() const;
|
|
|
|
/**
|
|
|
|
* @brief Gets or sets the post padding seconds.
|
|
|
|
*/
|
|
|
|
void setPostPaddingSeconds(qint32 newPostPaddingSeconds);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets a value indicating whether this instance is pre padding required.
|
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
bool isPrePaddingRequired() const;
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
2021-03-20 02:30:50 +00:00
|
|
|
* @brief Gets or sets a value indicating whether this instance is pre padding required.
|
|
|
|
*/
|
|
|
|
void setIsPrePaddingRequired(bool newIsPrePaddingRequired);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
2021-03-20 02:30:50 +00:00
|
|
|
* @brief If the item does not have any backdrops, this will hold the Id of the Parent that has one.
|
2021-02-21 04:02:05 +00:00
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QString parentBackdropItemId() const;
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
2021-03-20 02:30:50 +00:00
|
|
|
* @brief If the item does not have any backdrops, this will hold the Id of the Parent that has one.
|
|
|
|
*/
|
|
|
|
void setParentBackdropItemId(QString newParentBackdropItemId);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
2021-03-20 02:30:50 +00:00
|
|
|
* @brief Gets or sets the parent backdrop image tags.
|
2021-02-21 04:02:05 +00:00
|
|
|
*/
|
2021-03-20 02:30:50 +00:00
|
|
|
QStringList parentBackdropImageTags() const;
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
2021-03-20 02:30:50 +00:00
|
|
|
* @brief Gets or sets the parent backdrop image tags.
|
|
|
|
*/
|
|
|
|
void setParentBackdropImageTags(QStringList newParentBackdropImageTags);
|
2021-02-21 04:02:05 +00:00
|
|
|
/**
|
2021-03-20 02:30:50 +00:00
|
|
|
* @brief Gets or sets a value indicating whether this instance is post padding required.
|
2021-02-21 04:02:05 +00:00
|
|
|
*/
|
|
|
|
bool isPostPaddingRequired() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets a value indicating whether this instance is post padding required.
|
|
|
|
*/
|
2021-02-21 04:02:05 +00:00
|
|
|
void setIsPostPaddingRequired(bool newIsPostPaddingRequired);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
KeepUntil keepUntil() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setKeepUntil(KeepUntil newKeepUntil);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
RecordingStatus status() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
void setStatus(RecordingStatus newStatus);
|
2021-03-20 02:30:50 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the series timer identifier.
|
|
|
|
*/
|
2021-02-21 04:02:05 +00:00
|
|
|
QString seriesTimerId() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the series timer identifier.
|
|
|
|
*/
|
2021-02-21 04:02:05 +00:00
|
|
|
void setSeriesTimerId(QString newSeriesTimerId);
|
2021-03-20 02:30:50 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the external series timer identifier.
|
|
|
|
*/
|
2021-02-21 04:02:05 +00:00
|
|
|
QString externalSeriesTimerId() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the external series timer identifier.
|
|
|
|
*/
|
2021-02-21 04:02:05 +00:00
|
|
|
void setExternalSeriesTimerId(QString newExternalSeriesTimerId);
|
2021-03-20 02:30:50 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the run time ticks.
|
|
|
|
*/
|
2021-02-21 04:02:05 +00:00
|
|
|
qint64 runTimeTicks() const;
|
2021-03-20 02:30:50 +00:00
|
|
|
/**
|
|
|
|
* @brief Gets or sets the run time ticks.
|
|
|
|
*/
|
2021-02-21 04:02:05 +00:00
|
|
|
void setRunTimeTicks(qint64 newRunTimeTicks);
|
2021-03-20 02:30:50 +00:00
|
|
|
|
|
|
|
QSharedPointer<BaseItemDto> programInfo() const;
|
|
|
|
|
|
|
|
void setProgramInfo(QSharedPointer<BaseItemDto> newProgramInfo);
|
|
|
|
|
2021-02-21 04:02:05 +00:00
|
|
|
protected:
|
|
|
|
QString m_jellyfinId;
|
|
|
|
QString m_type;
|
|
|
|
QString m_serverId;
|
|
|
|
QString m_externalId;
|
2021-03-20 02:30:50 +00:00
|
|
|
QUuid m_channelId;
|
2021-02-21 04:02:05 +00:00
|
|
|
QString m_externalChannelId;
|
|
|
|
QString m_channelName;
|
|
|
|
QString m_channelPrimaryImageTag;
|
|
|
|
QString m_programId;
|
|
|
|
QString m_externalProgramId;
|
|
|
|
QString m_name;
|
|
|
|
QString m_overview;
|
|
|
|
QDateTime m_startDate;
|
|
|
|
QDateTime m_endDate;
|
|
|
|
QString m_serviceName;
|
|
|
|
qint32 m_priority;
|
|
|
|
qint32 m_prePaddingSeconds;
|
|
|
|
qint32 m_postPaddingSeconds;
|
|
|
|
bool m_isPrePaddingRequired;
|
|
|
|
QString m_parentBackdropItemId;
|
|
|
|
QStringList m_parentBackdropImageTags;
|
|
|
|
bool m_isPostPaddingRequired;
|
|
|
|
KeepUntil m_keepUntil;
|
|
|
|
RecordingStatus m_status;
|
|
|
|
QString m_seriesTimerId;
|
|
|
|
QString m_externalSeriesTimerId;
|
|
|
|
qint64 m_runTimeTicks;
|
2021-03-20 02:30:50 +00:00
|
|
|
QSharedPointer<BaseItemDto> m_programInfo = nullptr;
|
2021-02-21 04:02:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // NS Jellyfin
|
|
|
|
} // NS DTO
|
|
|
|
|
|
|
|
#endif // JELLYFIN_DTO_TIMERINFODTO_H
|