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

#include <notificationdto.h>

Public Member Functions

 NotificationDto (QDateTime date, bool isRead, NotificationLevel level)
 
 NotificationDto (const NotificationDto &other)
 
void replaceData (NotificationDto &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
QString jellyfinId () const
 Gets or sets the notification ID. Defaults to an empty string.
 
void setJellyfinId (QString newJellyfinId)
 Gets or sets the notification ID. Defaults to an empty string.
 
bool jellyfinIdNull () const
 
void setJellyfinIdNull ()
 
QString userId () const
 Gets or sets the notification's user ID. Defaults to an empty string.
 
void setUserId (QString newUserId)
 Gets or sets the notification's user ID. Defaults to an empty string.
 
bool userIdNull () const
 
void setUserIdNull ()
 
QDateTime date () const
 Gets or sets the notification date.
 
void setDate (QDateTime newDate)
 Gets or sets the notification date.
 
bool isRead () const
 Gets or sets a value indicating whether the notification has been read. Defaults to false.
 
void setIsRead (bool newIsRead)
 Gets or sets a value indicating whether the notification has been read. Defaults to false.
 
QString name () const
 Gets or sets the notification's name. Defaults to an empty string.
 
void setName (QString newName)
 Gets or sets the notification's name. Defaults to an empty string.
 
bool nameNull () const
 
void setNameNull ()
 
QString description () const
 Gets or sets the notification's description. Defaults to an empty string.
 
void setDescription (QString newDescription)
 Gets or sets the notification's description. Defaults to an empty string.
 
bool descriptionNull () const
 
void setDescriptionNull ()
 
QString url () const
 Gets or sets the notification's URL. Defaults to an empty string.
 
void setUrl (QString newUrl)
 Gets or sets the notification's URL. Defaults to an empty string.
 
bool urlNull () const
 
void setUrlNull ()
 
NotificationLevel level () const
 
void setLevel (NotificationLevel newLevel)
 

Static Public Member Functions

static NotificationDto fromJson (QJsonObject source)
 

Protected Attributes

QString m_jellyfinId
 
QString m_userId
 
QDateTime m_date
 
bool m_isRead
 
QString m_name
 
QString m_description
 
QString m_url
 
NotificationLevel m_level
 

Constructor & Destructor Documentation

◆ NotificationDto() [1/2]

Jellyfin::DTO::NotificationDto::NotificationDto ( QDateTime date,
bool isRead,
NotificationLevel level )

◆ NotificationDto() [2/2]

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

Member Function Documentation

◆ date()

QDateTime Jellyfin::DTO::NotificationDto::date ( ) const

Gets or sets the notification date.

◆ description()

QString Jellyfin::DTO::NotificationDto::description ( ) const

Gets or sets the notification's description. Defaults to an empty string.

◆ descriptionNull()

bool Jellyfin::DTO::NotificationDto::descriptionNull ( ) const

◆ fromJson()

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

◆ isRead()

bool Jellyfin::DTO::NotificationDto::isRead ( ) const

Gets or sets a value indicating whether the notification has been read. Defaults to false.

◆ jellyfinId()

QString Jellyfin::DTO::NotificationDto::jellyfinId ( ) const

Gets or sets the notification ID. Defaults to an empty string.

◆ jellyfinIdNull()

bool Jellyfin::DTO::NotificationDto::jellyfinIdNull ( ) const

◆ level()

NotificationLevel Jellyfin::DTO::NotificationDto::level ( ) const

◆ name()

QString Jellyfin::DTO::NotificationDto::name ( ) const

Gets or sets the notification's name. Defaults to an empty string.

◆ nameNull()

bool Jellyfin::DTO::NotificationDto::nameNull ( ) const

◆ replaceData()

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

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

◆ setDate()

void Jellyfin::DTO::NotificationDto::setDate ( QDateTime newDate)

Gets or sets the notification date.

◆ setDescription()

void Jellyfin::DTO::NotificationDto::setDescription ( QString newDescription)

Gets or sets the notification's description. Defaults to an empty string.

◆ setDescriptionNull()

void Jellyfin::DTO::NotificationDto::setDescriptionNull ( )

◆ setFromJson()

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

◆ setIsRead()

void Jellyfin::DTO::NotificationDto::setIsRead ( bool newIsRead)

Gets or sets a value indicating whether the notification has been read. Defaults to false.

◆ setJellyfinId()

void Jellyfin::DTO::NotificationDto::setJellyfinId ( QString newJellyfinId)

Gets or sets the notification ID. Defaults to an empty string.

◆ setJellyfinIdNull()

void Jellyfin::DTO::NotificationDto::setJellyfinIdNull ( )

◆ setLevel()

void Jellyfin::DTO::NotificationDto::setLevel ( NotificationLevel newLevel)

◆ setName()

void Jellyfin::DTO::NotificationDto::setName ( QString newName)

Gets or sets the notification's name. Defaults to an empty string.

◆ setNameNull()

void Jellyfin::DTO::NotificationDto::setNameNull ( )

◆ setUrl()

void Jellyfin::DTO::NotificationDto::setUrl ( QString newUrl)

Gets or sets the notification's URL. Defaults to an empty string.

◆ setUrlNull()

void Jellyfin::DTO::NotificationDto::setUrlNull ( )

◆ setUserId()

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

Gets or sets the notification's user ID. Defaults to an empty string.

◆ setUserIdNull()

void Jellyfin::DTO::NotificationDto::setUserIdNull ( )

◆ toJson()

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

◆ url()

QString Jellyfin::DTO::NotificationDto::url ( ) const

Gets or sets the notification's URL. Defaults to an empty string.

◆ urlNull()

bool Jellyfin::DTO::NotificationDto::urlNull ( ) const

◆ userId()

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

Gets or sets the notification's user ID. Defaults to an empty string.

◆ userIdNull()

bool Jellyfin::DTO::NotificationDto::userIdNull ( ) const

Member Data Documentation

◆ m_date

QDateTime Jellyfin::DTO::NotificationDto::m_date
protected

◆ m_description

QString Jellyfin::DTO::NotificationDto::m_description
protected

◆ m_isRead

bool Jellyfin::DTO::NotificationDto::m_isRead
protected

◆ m_jellyfinId

QString Jellyfin::DTO::NotificationDto::m_jellyfinId
protected

◆ m_level

NotificationLevel Jellyfin::DTO::NotificationDto::m_level
protected

◆ m_name

QString Jellyfin::DTO::NotificationDto::m_name
protected

◆ m_url

QString Jellyfin::DTO::NotificationDto::m_url
protected

◆ m_userId

QString Jellyfin::DTO::NotificationDto::m_userId
protected

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