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

#include <sessionuserinfo.h>

Public Member Functions

 SessionUserInfo (QString userId)
 
 SessionUserInfo (const SessionUserInfo &other)
 
void replaceData (SessionUserInfo &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
QString userId () const
 Gets or sets the user identifier.
 
void setUserId (QString newUserId)
 Gets or sets the user identifier.
 
QString userName () const
 Gets or sets the name of the user.
 
void setUserName (QString newUserName)
 Gets or sets the name of the user.
 
bool userNameNull () const
 
void setUserNameNull ()
 

Static Public Member Functions

static SessionUserInfo fromJson (QJsonObject source)
 

Protected Attributes

QString m_userId
 
QString m_userName
 

Constructor & Destructor Documentation

◆ SessionUserInfo() [1/2]

Jellyfin::DTO::SessionUserInfo::SessionUserInfo ( QString userId)

◆ SessionUserInfo() [2/2]

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

Member Function Documentation

◆ fromJson()

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

◆ replaceData()

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

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

◆ setFromJson()

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

◆ setUserId()

void Jellyfin::DTO::SessionUserInfo::setUserId ( QString newUserId)

Gets or sets the user identifier.

◆ setUserName()

void Jellyfin::DTO::SessionUserInfo::setUserName ( QString newUserName)

Gets or sets the name of the user.

◆ setUserNameNull()

void Jellyfin::DTO::SessionUserInfo::setUserNameNull ( )

◆ toJson()

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

◆ userId()

QString Jellyfin::DTO::SessionUserInfo::userId ( ) const

Gets or sets the user identifier.

◆ userName()

QString Jellyfin::DTO::SessionUserInfo::userName ( ) const

Gets or sets the name of the user.

◆ userNameNull()

bool Jellyfin::DTO::SessionUserInfo::userNameNull ( ) const

Member Data Documentation

◆ m_userId

QString Jellyfin::DTO::SessionUserInfo::m_userId
protected

◆ m_userName

QString Jellyfin::DTO::SessionUserInfo::m_userName
protected

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