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

#include <messagecommand.h>

Public Member Functions

 MessageCommand (QString text)
 MessageCommand (const MessageCommand &other)
void replaceData (MessageCommand &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QString header () const
void setHeader (QString newHeader)
bool headerNull () const
void setHeaderNull ()
QString text () const
void setText (QString newText)
std::optional< qint64 > timeoutMs () const
void setTimeoutMs (std::optional< qint64 > newTimeoutMs)
bool timeoutMsNull () const
void setTimeoutMsNull ()

Static Public Member Functions

static MessageCommand fromJson (QJsonObject source)

Protected Attributes

QString m_header
QString m_text
std::optional< qint64 > m_timeoutMs = std::nullopt

Constructor & Destructor Documentation

◆ MessageCommand() [1/2]

Jellyfin::DTO::MessageCommand::MessageCommand ( QString text)

◆ MessageCommand() [2/2]

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

Member Function Documentation

◆ fromJson()

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

◆ header()

QString Jellyfin::DTO::MessageCommand::header ( ) const

◆ headerNull()

bool Jellyfin::DTO::MessageCommand::headerNull ( ) const

◆ replaceData()

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

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

◆ setFromJson()

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

◆ setHeader()

void Jellyfin::DTO::MessageCommand::setHeader ( QString newHeader)

◆ setHeaderNull()

void Jellyfin::DTO::MessageCommand::setHeaderNull ( )

◆ setText()

void Jellyfin::DTO::MessageCommand::setText ( QString newText)

◆ setTimeoutMs()

void Jellyfin::DTO::MessageCommand::setTimeoutMs ( std::optional< qint64 > newTimeoutMs)

◆ setTimeoutMsNull()

void Jellyfin::DTO::MessageCommand::setTimeoutMsNull ( )

◆ text()

QString Jellyfin::DTO::MessageCommand::text ( ) const

◆ timeoutMs()

std::optional< qint64 > Jellyfin::DTO::MessageCommand::timeoutMs ( ) const

◆ timeoutMsNull()

bool Jellyfin::DTO::MessageCommand::timeoutMsNull ( ) const

◆ toJson()

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

Member Data Documentation

◆ m_header

QString Jellyfin::DTO::MessageCommand::m_header
protected

◆ m_text

QString Jellyfin::DTO::MessageCommand::m_text
protected

◆ m_timeoutMs

std::optional<qint64> Jellyfin::DTO::MessageCommand::m_timeoutMs = std::nullopt
protected

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