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

#include <notificationssummarydto.h>

Public Member Functions

 NotificationsSummaryDto (qint32 unreadCount, NotificationLevel maxUnreadNotificationLevel)
 
 NotificationsSummaryDto (const NotificationsSummaryDto &other)
 
void replaceData (NotificationsSummaryDto &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
qint32 unreadCount () const
 Gets or sets the number of unread notifications.
 
void setUnreadCount (qint32 newUnreadCount)
 Gets or sets the number of unread notifications.
 
NotificationLevel maxUnreadNotificationLevel () const
 
void setMaxUnreadNotificationLevel (NotificationLevel newMaxUnreadNotificationLevel)
 

Static Public Member Functions

static NotificationsSummaryDto fromJson (QJsonObject source)
 

Protected Attributes

qint32 m_unreadCount
 
NotificationLevel m_maxUnreadNotificationLevel
 

Constructor & Destructor Documentation

◆ NotificationsSummaryDto() [1/2]

Jellyfin::DTO::NotificationsSummaryDto::NotificationsSummaryDto ( qint32 unreadCount,
NotificationLevel maxUnreadNotificationLevel )

◆ NotificationsSummaryDto() [2/2]

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

Member Function Documentation

◆ fromJson()

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

◆ maxUnreadNotificationLevel()

NotificationLevel Jellyfin::DTO::NotificationsSummaryDto::maxUnreadNotificationLevel ( ) const

◆ replaceData()

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

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

◆ setFromJson()

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

◆ setMaxUnreadNotificationLevel()

void Jellyfin::DTO::NotificationsSummaryDto::setMaxUnreadNotificationLevel ( NotificationLevel newMaxUnreadNotificationLevel)

◆ setUnreadCount()

void Jellyfin::DTO::NotificationsSummaryDto::setUnreadCount ( qint32 newUnreadCount)

Gets or sets the number of unread notifications.

◆ toJson()

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

◆ unreadCount()

qint32 Jellyfin::DTO::NotificationsSummaryDto::unreadCount ( ) const

Gets or sets the number of unread notifications.

Member Data Documentation

◆ m_maxUnreadNotificationLevel

NotificationLevel Jellyfin::DTO::NotificationsSummaryDto::m_maxUnreadNotificationLevel
protected

◆ m_unreadCount

qint32 Jellyfin::DTO::NotificationsSummaryDto::m_unreadCount
protected

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