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

#include <sessionsmessage.h>

Public Member Functions

 SessionsMessage (QString messageId, SessionMessageType messageType)
 SessionsMessage (const SessionsMessage &other)
void replaceData (SessionsMessage &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QList< SessionInfoDtodata () const
 Gets or sets the data.
void setData (QList< SessionInfoDto > newData)
 Gets or sets the data.
bool dataNull () const
void setDataNull ()
QString messageId () const
 Gets or sets the message id.
void setMessageId (QString newMessageId)
 Gets or sets the message id.
SessionMessageType messageType () const
void setMessageType (SessionMessageType newMessageType)

Static Public Member Functions

static SessionsMessage fromJson (QJsonObject source)

Protected Attributes

QList< SessionInfoDtom_data
QString m_messageId
SessionMessageType m_messageType

Constructor & Destructor Documentation

◆ SessionsMessage() [1/2]

Jellyfin::DTO::SessionsMessage::SessionsMessage ( QString messageId,
SessionMessageType messageType )

◆ SessionsMessage() [2/2]

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

Member Function Documentation

◆ data()

QList< SessionInfoDto > Jellyfin::DTO::SessionsMessage::data ( ) const

Gets or sets the data.

◆ dataNull()

bool Jellyfin::DTO::SessionsMessage::dataNull ( ) const

◆ fromJson()

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

◆ messageId()

QString Jellyfin::DTO::SessionsMessage::messageId ( ) const

Gets or sets the message id.

◆ messageType()

SessionMessageType Jellyfin::DTO::SessionsMessage::messageType ( ) const

◆ replaceData()

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

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

◆ setData()

void Jellyfin::DTO::SessionsMessage::setData ( QList< SessionInfoDto > newData)

Gets or sets the data.

◆ setDataNull()

void Jellyfin::DTO::SessionsMessage::setDataNull ( )

◆ setFromJson()

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

◆ setMessageId()

void Jellyfin::DTO::SessionsMessage::setMessageId ( QString newMessageId)

Gets or sets the message id.

◆ setMessageType()

void Jellyfin::DTO::SessionsMessage::setMessageType ( SessionMessageType newMessageType)

◆ toJson()

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

Member Data Documentation

◆ m_data

QList<SessionInfoDto> Jellyfin::DTO::SessionsMessage::m_data
protected

◆ m_messageId

QString Jellyfin::DTO::SessionsMessage::m_messageId
protected

◆ m_messageType

SessionMessageType Jellyfin::DTO::SessionsMessage::m_messageType
protected

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