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

#include <playstaterequest.h>

Public Member Functions

 PlaystateRequest (PlaystateCommand command)
 
 PlaystateRequest (const PlaystateRequest &other)
 
void replaceData (PlaystateRequest &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
PlaystateCommand command () const
 
void setCommand (PlaystateCommand newCommand)
 
std::optional< qint64 > seekPositionTicks () const
 
void setSeekPositionTicks (std::optional< qint64 > newSeekPositionTicks)
 
bool seekPositionTicksNull () const
 
void setSeekPositionTicksNull ()
 
QString controllingUserId () const
 Gets or sets the controlling user identifier.
 
void setControllingUserId (QString newControllingUserId)
 Gets or sets the controlling user identifier.
 
bool controllingUserIdNull () const
 
void setControllingUserIdNull ()
 

Static Public Member Functions

static PlaystateRequest fromJson (QJsonObject source)
 

Protected Attributes

PlaystateCommand m_command
 
std::optional< qint64 > m_seekPositionTicks = std::nullopt
 
QString m_controllingUserId
 

Constructor & Destructor Documentation

◆ PlaystateRequest() [1/2]

Jellyfin::DTO::PlaystateRequest::PlaystateRequest ( PlaystateCommand command)

◆ PlaystateRequest() [2/2]

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

Member Function Documentation

◆ command()

PlaystateCommand Jellyfin::DTO::PlaystateRequest::command ( ) const

◆ controllingUserId()

QString Jellyfin::DTO::PlaystateRequest::controllingUserId ( ) const

Gets or sets the controlling user identifier.

◆ controllingUserIdNull()

bool Jellyfin::DTO::PlaystateRequest::controllingUserIdNull ( ) const

◆ fromJson()

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

◆ replaceData()

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

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

◆ seekPositionTicks()

std::optional< qint64 > Jellyfin::DTO::PlaystateRequest::seekPositionTicks ( ) const

◆ seekPositionTicksNull()

bool Jellyfin::DTO::PlaystateRequest::seekPositionTicksNull ( ) const

◆ setCommand()

void Jellyfin::DTO::PlaystateRequest::setCommand ( PlaystateCommand newCommand)

◆ setControllingUserId()

void Jellyfin::DTO::PlaystateRequest::setControllingUserId ( QString newControllingUserId)

Gets or sets the controlling user identifier.

◆ setControllingUserIdNull()

void Jellyfin::DTO::PlaystateRequest::setControllingUserIdNull ( )

◆ setFromJson()

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

◆ setSeekPositionTicks()

void Jellyfin::DTO::PlaystateRequest::setSeekPositionTicks ( std::optional< qint64 > newSeekPositionTicks)

◆ setSeekPositionTicksNull()

void Jellyfin::DTO::PlaystateRequest::setSeekPositionTicksNull ( )

◆ toJson()

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

Member Data Documentation

◆ m_command

PlaystateCommand Jellyfin::DTO::PlaystateRequest::m_command
protected

◆ m_controllingUserId

QString Jellyfin::DTO::PlaystateRequest::m_controllingUserId
protected

◆ m_seekPositionTicks

std::optional<qint64> Jellyfin::DTO::PlaystateRequest::m_seekPositionTicks = std::nullopt
protected

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