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

#include <sendcommand.h>

Public Member Functions

 SendCommand (QString groupId, QString playlistItemId, QDateTime when, SendCommandType command, QDateTime emittedAt)
 
 SendCommand (const SendCommand &other)
 
void replaceData (SendCommand &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
QString groupId () const
 Gets the group identifier.
 
void setGroupId (QString newGroupId)
 Gets the group identifier.
 
QString playlistItemId () const
 Gets the playlist identifier of the playing item.
 
void setPlaylistItemId (QString newPlaylistItemId)
 Gets the playlist identifier of the playing item.
 
QDateTime when () const
 Gets or sets the UTC time when to execute the command.
 
void setWhen (QDateTime newWhen)
 Gets or sets the UTC time when to execute the command.
 
std::optional< qint64 > positionTicks () const
 Gets the position ticks.
 
void setPositionTicks (std::optional< qint64 > newPositionTicks)
 Gets the position ticks.
 
bool positionTicksNull () const
 
void setPositionTicksNull ()
 
SendCommandType command () const
 
void setCommand (SendCommandType newCommand)
 
QDateTime emittedAt () const
 Gets the UTC time when this command has been emitted.
 
void setEmittedAt (QDateTime newEmittedAt)
 Gets the UTC time when this command has been emitted.
 

Static Public Member Functions

static SendCommand fromJson (QJsonObject source)
 

Protected Attributes

QString m_groupId
 
QString m_playlistItemId
 
QDateTime m_when
 
std::optional< qint64 > m_positionTicks = std::nullopt
 
SendCommandType m_command
 
QDateTime m_emittedAt
 

Constructor & Destructor Documentation

◆ SendCommand() [1/2]

Jellyfin::DTO::SendCommand::SendCommand ( QString groupId,
QString playlistItemId,
QDateTime when,
SendCommandType command,
QDateTime emittedAt )

◆ SendCommand() [2/2]

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

Member Function Documentation

◆ command()

SendCommandType Jellyfin::DTO::SendCommand::command ( ) const

◆ emittedAt()

QDateTime Jellyfin::DTO::SendCommand::emittedAt ( ) const

Gets the UTC time when this command has been emitted.

◆ fromJson()

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

◆ groupId()

QString Jellyfin::DTO::SendCommand::groupId ( ) const

Gets the group identifier.

◆ playlistItemId()

QString Jellyfin::DTO::SendCommand::playlistItemId ( ) const

Gets the playlist identifier of the playing item.

◆ positionTicks()

std::optional< qint64 > Jellyfin::DTO::SendCommand::positionTicks ( ) const

Gets the position ticks.

◆ positionTicksNull()

bool Jellyfin::DTO::SendCommand::positionTicksNull ( ) const

◆ replaceData()

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

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

◆ setCommand()

void Jellyfin::DTO::SendCommand::setCommand ( SendCommandType newCommand)

◆ setEmittedAt()

void Jellyfin::DTO::SendCommand::setEmittedAt ( QDateTime newEmittedAt)

Gets the UTC time when this command has been emitted.

◆ setFromJson()

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

◆ setGroupId()

void Jellyfin::DTO::SendCommand::setGroupId ( QString newGroupId)

Gets the group identifier.

◆ setPlaylistItemId()

void Jellyfin::DTO::SendCommand::setPlaylistItemId ( QString newPlaylistItemId)

Gets the playlist identifier of the playing item.

◆ setPositionTicks()

void Jellyfin::DTO::SendCommand::setPositionTicks ( std::optional< qint64 > newPositionTicks)

Gets the position ticks.

◆ setPositionTicksNull()

void Jellyfin::DTO::SendCommand::setPositionTicksNull ( )

◆ setWhen()

void Jellyfin::DTO::SendCommand::setWhen ( QDateTime newWhen)

Gets or sets the UTC time when to execute the command.

◆ toJson()

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

◆ when()

QDateTime Jellyfin::DTO::SendCommand::when ( ) const

Gets or sets the UTC time when to execute the command.

Member Data Documentation

◆ m_command

SendCommandType Jellyfin::DTO::SendCommand::m_command
protected

◆ m_emittedAt

QDateTime Jellyfin::DTO::SendCommand::m_emittedAt
protected

◆ m_groupId

QString Jellyfin::DTO::SendCommand::m_groupId
protected

◆ m_playlistItemId

QString Jellyfin::DTO::SendCommand::m_playlistItemId
protected

◆ m_positionTicks

std::optional<qint64> Jellyfin::DTO::SendCommand::m_positionTicks = std::nullopt
protected

◆ m_when

QDateTime Jellyfin::DTO::SendCommand::m_when
protected

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