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

#include <userdto.h>

Inheritance diagram for Jellyfin::DTO::UserDto:
Jellyfin::Model::User

Public Member Functions

 UserDto (QString jellyfinId, bool hasPassword, bool hasConfiguredPassword, bool hasConfiguredEasyPassword, QSharedPointer< UserConfiguration > configuration, QSharedPointer< UserPolicy > policy)
 
 UserDto (const UserDto &other)
 
void replaceData (UserDto &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
QString name () const
 Gets or sets the name.
 
void setName (QString newName)
 Gets or sets the name.
 
bool nameNull () const
 
void setNameNull ()
 
QString serverId () const
 Gets or sets the server identifier.
 
void setServerId (QString newServerId)
 Gets or sets the server identifier.
 
bool serverIdNull () const
 
void setServerIdNull ()
 
QString serverName () const
 
void setServerName (QString newServerName)
 
bool serverNameNull () const
 
void setServerNameNull ()
 
QString jellyfinId () const
 Gets or sets the id.
 
void setJellyfinId (QString newJellyfinId)
 Gets or sets the id.
 
QString primaryImageTag () const
 Gets or sets the primary image tag.
 
void setPrimaryImageTag (QString newPrimaryImageTag)
 Gets or sets the primary image tag.
 
bool primaryImageTagNull () const
 
void setPrimaryImageTagNull ()
 
bool hasPassword () const
 Gets or sets a value indicating whether this instance has password.
 
void setHasPassword (bool newHasPassword)
 Gets or sets a value indicating whether this instance has password.
 
bool hasConfiguredPassword () const
 Gets or sets a value indicating whether this instance has configured password.
 
void setHasConfiguredPassword (bool newHasConfiguredPassword)
 Gets or sets a value indicating whether this instance has configured password.
 
bool hasConfiguredEasyPassword () const
 Gets or sets a value indicating whether this instance has configured easy password.
 
void setHasConfiguredEasyPassword (bool newHasConfiguredEasyPassword)
 Gets or sets a value indicating whether this instance has configured easy password.
 
std::optional< bool > enableAutoLogin () const
 Gets or sets whether async login is enabled or not.
 
void setEnableAutoLogin (std::optional< bool > newEnableAutoLogin)
 Gets or sets whether async login is enabled or not.
 
bool enableAutoLoginNull () const
 
void setEnableAutoLoginNull ()
 
QDateTime lastLoginDate () const
 Gets or sets the last login date.
 
void setLastLoginDate (QDateTime newLastLoginDate)
 Gets or sets the last login date.
 
bool lastLoginDateNull () const
 
void setLastLoginDateNull ()
 
QDateTime lastActivityDate () const
 Gets or sets the last activity date.
 
void setLastActivityDate (QDateTime newLastActivityDate)
 Gets or sets the last activity date.
 
bool lastActivityDateNull () const
 
void setLastActivityDateNull ()
 
QSharedPointer< UserConfigurationconfiguration () const
 
void setConfiguration (QSharedPointer< UserConfiguration > newConfiguration)
 
QSharedPointer< UserPolicypolicy () const
 
void setPolicy (QSharedPointer< UserPolicy > newPolicy)
 
std::optional< double > primaryImageAspectRatio () const
 Gets or sets the primary image aspect ratio.
 
void setPrimaryImageAspectRatio (std::optional< double > newPrimaryImageAspectRatio)
 Gets or sets the primary image aspect ratio.
 
bool primaryImageAspectRatioNull () const
 
void setPrimaryImageAspectRatioNull ()
 

Static Public Member Functions

static UserDto fromJson (QJsonObject source)
 

Protected Attributes

QString m_name
 
QString m_serverId
 
QString m_serverName
 
QString m_jellyfinId
 
QString m_primaryImageTag
 
bool m_hasPassword
 
bool m_hasConfiguredPassword
 
bool m_hasConfiguredEasyPassword
 
std::optional< bool > m_enableAutoLogin = std::nullopt
 
QDateTime m_lastLoginDate
 
QDateTime m_lastActivityDate
 
QSharedPointer< UserConfigurationm_configuration = QSharedPointer<UserConfiguration>()
 
QSharedPointer< UserPolicym_policy = QSharedPointer<UserPolicy>()
 
std::optional< double > m_primaryImageAspectRatio = std::nullopt
 

Constructor & Destructor Documentation

◆ UserDto() [1/2]

Jellyfin::DTO::UserDto::UserDto ( QString jellyfinId,
bool hasPassword,
bool hasConfiguredPassword,
bool hasConfiguredEasyPassword,
QSharedPointer< UserConfiguration > configuration,
QSharedPointer< UserPolicy > policy )

◆ UserDto() [2/2]

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

Member Function Documentation

◆ configuration()

QSharedPointer< UserConfiguration > Jellyfin::DTO::UserDto::configuration ( ) const

◆ enableAutoLogin()

std::optional< bool > Jellyfin::DTO::UserDto::enableAutoLogin ( ) const

Gets or sets whether async login is enabled or not.

◆ enableAutoLoginNull()

bool Jellyfin::DTO::UserDto::enableAutoLoginNull ( ) const

◆ fromJson()

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

◆ hasConfiguredEasyPassword()

bool Jellyfin::DTO::UserDto::hasConfiguredEasyPassword ( ) const

Gets or sets a value indicating whether this instance has configured easy password.

◆ hasConfiguredPassword()

bool Jellyfin::DTO::UserDto::hasConfiguredPassword ( ) const

Gets or sets a value indicating whether this instance has configured password.

◆ hasPassword()

bool Jellyfin::DTO::UserDto::hasPassword ( ) const

Gets or sets a value indicating whether this instance has password.

◆ jellyfinId()

QString Jellyfin::DTO::UserDto::jellyfinId ( ) const

Gets or sets the id.

◆ lastActivityDate()

QDateTime Jellyfin::DTO::UserDto::lastActivityDate ( ) const

Gets or sets the last activity date.

◆ lastActivityDateNull()

bool Jellyfin::DTO::UserDto::lastActivityDateNull ( ) const

◆ lastLoginDate()

QDateTime Jellyfin::DTO::UserDto::lastLoginDate ( ) const

Gets or sets the last login date.

◆ lastLoginDateNull()

bool Jellyfin::DTO::UserDto::lastLoginDateNull ( ) const

◆ name()

QString Jellyfin::DTO::UserDto::name ( ) const

Gets or sets the name.

◆ nameNull()

bool Jellyfin::DTO::UserDto::nameNull ( ) const

◆ policy()

QSharedPointer< UserPolicy > Jellyfin::DTO::UserDto::policy ( ) const

◆ primaryImageAspectRatio()

std::optional< double > Jellyfin::DTO::UserDto::primaryImageAspectRatio ( ) const

Gets or sets the primary image aspect ratio.

◆ primaryImageAspectRatioNull()

bool Jellyfin::DTO::UserDto::primaryImageAspectRatioNull ( ) const

◆ primaryImageTag()

QString Jellyfin::DTO::UserDto::primaryImageTag ( ) const

Gets or sets the primary image tag.

◆ primaryImageTagNull()

bool Jellyfin::DTO::UserDto::primaryImageTagNull ( ) const

◆ replaceData()

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

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

◆ serverId()

QString Jellyfin::DTO::UserDto::serverId ( ) const

Gets or sets the server identifier.

◆ serverIdNull()

bool Jellyfin::DTO::UserDto::serverIdNull ( ) const

◆ serverName()

QString Jellyfin::DTO::UserDto::serverName ( ) const
   @brief Gets or sets the name of the server.

This is not used by the server and is for client-side usage only.

◆ serverNameNull()

bool Jellyfin::DTO::UserDto::serverNameNull ( ) const

◆ setConfiguration()

void Jellyfin::DTO::UserDto::setConfiguration ( QSharedPointer< UserConfiguration > newConfiguration)

◆ setEnableAutoLogin()

void Jellyfin::DTO::UserDto::setEnableAutoLogin ( std::optional< bool > newEnableAutoLogin)

Gets or sets whether async login is enabled or not.

◆ setEnableAutoLoginNull()

void Jellyfin::DTO::UserDto::setEnableAutoLoginNull ( )

◆ setFromJson()

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

◆ setHasConfiguredEasyPassword()

void Jellyfin::DTO::UserDto::setHasConfiguredEasyPassword ( bool newHasConfiguredEasyPassword)

Gets or sets a value indicating whether this instance has configured easy password.

◆ setHasConfiguredPassword()

void Jellyfin::DTO::UserDto::setHasConfiguredPassword ( bool newHasConfiguredPassword)

Gets or sets a value indicating whether this instance has configured password.

◆ setHasPassword()

void Jellyfin::DTO::UserDto::setHasPassword ( bool newHasPassword)

Gets or sets a value indicating whether this instance has password.

◆ setJellyfinId()

void Jellyfin::DTO::UserDto::setJellyfinId ( QString newJellyfinId)

Gets or sets the id.

◆ setLastActivityDate()

void Jellyfin::DTO::UserDto::setLastActivityDate ( QDateTime newLastActivityDate)

Gets or sets the last activity date.

◆ setLastActivityDateNull()

void Jellyfin::DTO::UserDto::setLastActivityDateNull ( )

◆ setLastLoginDate()

void Jellyfin::DTO::UserDto::setLastLoginDate ( QDateTime newLastLoginDate)

Gets or sets the last login date.

◆ setLastLoginDateNull()

void Jellyfin::DTO::UserDto::setLastLoginDateNull ( )

◆ setName()

void Jellyfin::DTO::UserDto::setName ( QString newName)

Gets or sets the name.

◆ setNameNull()

void Jellyfin::DTO::UserDto::setNameNull ( )

◆ setPolicy()

void Jellyfin::DTO::UserDto::setPolicy ( QSharedPointer< UserPolicy > newPolicy)

◆ setPrimaryImageAspectRatio()

void Jellyfin::DTO::UserDto::setPrimaryImageAspectRatio ( std::optional< double > newPrimaryImageAspectRatio)

Gets or sets the primary image aspect ratio.

◆ setPrimaryImageAspectRatioNull()

void Jellyfin::DTO::UserDto::setPrimaryImageAspectRatioNull ( )

◆ setPrimaryImageTag()

void Jellyfin::DTO::UserDto::setPrimaryImageTag ( QString newPrimaryImageTag)

Gets or sets the primary image tag.

◆ setPrimaryImageTagNull()

void Jellyfin::DTO::UserDto::setPrimaryImageTagNull ( )

◆ setServerId()

void Jellyfin::DTO::UserDto::setServerId ( QString newServerId)

Gets or sets the server identifier.

◆ setServerIdNull()

void Jellyfin::DTO::UserDto::setServerIdNull ( )

◆ setServerName()

void Jellyfin::DTO::UserDto::setServerName ( QString newServerName)
  @brief Gets or sets the name of the server.

This is not used by the server and is for client-side usage only.

◆ setServerNameNull()

void Jellyfin::DTO::UserDto::setServerNameNull ( )

◆ toJson()

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

Member Data Documentation

◆ m_configuration

QSharedPointer<UserConfiguration> Jellyfin::DTO::UserDto::m_configuration = QSharedPointer<UserConfiguration>()
protected

◆ m_enableAutoLogin

std::optional<bool> Jellyfin::DTO::UserDto::m_enableAutoLogin = std::nullopt
protected

◆ m_hasConfiguredEasyPassword

bool Jellyfin::DTO::UserDto::m_hasConfiguredEasyPassword
protected

◆ m_hasConfiguredPassword

bool Jellyfin::DTO::UserDto::m_hasConfiguredPassword
protected

◆ m_hasPassword

bool Jellyfin::DTO::UserDto::m_hasPassword
protected

◆ m_jellyfinId

QString Jellyfin::DTO::UserDto::m_jellyfinId
protected

◆ m_lastActivityDate

QDateTime Jellyfin::DTO::UserDto::m_lastActivityDate
protected

◆ m_lastLoginDate

QDateTime Jellyfin::DTO::UserDto::m_lastLoginDate
protected

◆ m_name

QString Jellyfin::DTO::UserDto::m_name
protected

◆ m_policy

QSharedPointer<UserPolicy> Jellyfin::DTO::UserDto::m_policy = QSharedPointer<UserPolicy>()
protected

◆ m_primaryImageAspectRatio

std::optional<double> Jellyfin::DTO::UserDto::m_primaryImageAspectRatio = std::nullopt
protected

◆ m_primaryImageTag

QString Jellyfin::DTO::UserDto::m_primaryImageTag
protected

◆ m_serverId

QString Jellyfin::DTO::UserDto::m_serverId
protected

◆ m_serverName

QString Jellyfin::DTO::UserDto::m_serverName
protected

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