Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::DTO::AccessSchedule Class Reference

#include <accessschedule.h>

Public Member Functions

 AccessSchedule (qint32 jellyfinId, QString userId, DynamicDayOfWeek dayOfWeek, double startHour, double endHour)
 
 AccessSchedule (const AccessSchedule &other)
 
void replaceData (AccessSchedule &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
qint32 jellyfinId () const
 Gets or sets the id of this instance.
 
void setJellyfinId (qint32 newJellyfinId)
 Gets or sets the id of this instance.
 
QString userId () const
 Gets or sets the id of the associated user.
 
void setUserId (QString newUserId)
 Gets or sets the id of the associated user.
 
DynamicDayOfWeek dayOfWeek () const
 
void setDayOfWeek (DynamicDayOfWeek newDayOfWeek)
 
double startHour () const
 Gets or sets the start hour.
 
void setStartHour (double newStartHour)
 Gets or sets the start hour.
 
double endHour () const
 Gets or sets the end hour.
 
void setEndHour (double newEndHour)
 Gets or sets the end hour.
 

Static Public Member Functions

static AccessSchedule fromJson (QJsonObject source)
 

Protected Attributes

qint32 m_jellyfinId
 
QString m_userId
 
DynamicDayOfWeek m_dayOfWeek
 
double m_startHour
 
double m_endHour
 

Constructor & Destructor Documentation

◆ AccessSchedule() [1/2]

Jellyfin::DTO::AccessSchedule::AccessSchedule ( qint32 jellyfinId,
QString userId,
DynamicDayOfWeek dayOfWeek,
double startHour,
double endHour )

◆ AccessSchedule() [2/2]

Jellyfin::DTO::AccessSchedule::AccessSchedule ( const AccessSchedule & other)

Member Function Documentation

◆ dayOfWeek()

DynamicDayOfWeek Jellyfin::DTO::AccessSchedule::dayOfWeek ( ) const

◆ endHour()

double Jellyfin::DTO::AccessSchedule::endHour ( ) const

Gets or sets the end hour.

◆ fromJson()

AccessSchedule Jellyfin::DTO::AccessSchedule::fromJson ( QJsonObject source)
static

◆ jellyfinId()

qint32 Jellyfin::DTO::AccessSchedule::jellyfinId ( ) const

Gets or sets the id of this instance.

◆ replaceData()

void Jellyfin::DTO::AccessSchedule::replaceData ( AccessSchedule & other)

Replaces the data being hold by this class with that of the other.

◆ setDayOfWeek()

void Jellyfin::DTO::AccessSchedule::setDayOfWeek ( DynamicDayOfWeek newDayOfWeek)

◆ setEndHour()

void Jellyfin::DTO::AccessSchedule::setEndHour ( double newEndHour)

Gets or sets the end hour.

◆ setFromJson()

void Jellyfin::DTO::AccessSchedule::setFromJson ( QJsonObject source)

◆ setJellyfinId()

void Jellyfin::DTO::AccessSchedule::setJellyfinId ( qint32 newJellyfinId)

Gets or sets the id of this instance.

◆ setStartHour()

void Jellyfin::DTO::AccessSchedule::setStartHour ( double newStartHour)

Gets or sets the start hour.

◆ setUserId()

void Jellyfin::DTO::AccessSchedule::setUserId ( QString newUserId)

Gets or sets the id of the associated user.

◆ startHour()

double Jellyfin::DTO::AccessSchedule::startHour ( ) const

Gets or sets the start hour.

◆ toJson()

QJsonObject Jellyfin::DTO::AccessSchedule::toJson ( ) const

◆ userId()

QString Jellyfin::DTO::AccessSchedule::userId ( ) const

Gets or sets the id of the associated user.

Member Data Documentation

◆ m_dayOfWeek

DynamicDayOfWeek Jellyfin::DTO::AccessSchedule::m_dayOfWeek
protected

◆ m_endHour

double Jellyfin::DTO::AccessSchedule::m_endHour
protected

◆ m_jellyfinId

qint32 Jellyfin::DTO::AccessSchedule::m_jellyfinId
protected

◆ m_startHour

double Jellyfin::DTO::AccessSchedule::m_startHour
protected

◆ m_userId

QString Jellyfin::DTO::AccessSchedule::m_userId
protected

The documentation for this class was generated from the following files: