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

#include <authenticationresult.h>

Public Member Functions

 AuthenticationResult (QSharedPointer< UserDto > user, QSharedPointer< SessionInfoDto > sessionInfo)
 AuthenticationResult (const AuthenticationResult &other)
void replaceData (AuthenticationResult &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QSharedPointer< UserDtouser () const
void setUser (QSharedPointer< UserDto > newUser)
QSharedPointer< SessionInfoDtosessionInfo () const
void setSessionInfo (QSharedPointer< SessionInfoDto > newSessionInfo)
QString accessToken () const
 Gets or sets the access token.
void setAccessToken (QString newAccessToken)
 Gets or sets the access token.
bool accessTokenNull () const
void setAccessTokenNull ()
QString serverId () const
 Gets or sets the server id.
void setServerId (QString newServerId)
 Gets or sets the server id.
bool serverIdNull () const
void setServerIdNull ()

Static Public Member Functions

static AuthenticationResult fromJson (QJsonObject source)

Protected Attributes

QSharedPointer< UserDtom_user = QSharedPointer<UserDto>()
QSharedPointer< SessionInfoDtom_sessionInfo = QSharedPointer<SessionInfoDto>()
QString m_accessToken
QString m_serverId

Constructor & Destructor Documentation

◆ AuthenticationResult() [1/2]

Jellyfin::DTO::AuthenticationResult::AuthenticationResult ( QSharedPointer< UserDto > user,
QSharedPointer< SessionInfoDto > sessionInfo )

◆ AuthenticationResult() [2/2]

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

Member Function Documentation

◆ accessToken()

QString Jellyfin::DTO::AuthenticationResult::accessToken ( ) const

Gets or sets the access token.

◆ accessTokenNull()

bool Jellyfin::DTO::AuthenticationResult::accessTokenNull ( ) const

◆ fromJson()

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

◆ replaceData()

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

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

◆ serverId()

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

Gets or sets the server id.

◆ serverIdNull()

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

◆ sessionInfo()

QSharedPointer< SessionInfoDto > Jellyfin::DTO::AuthenticationResult::sessionInfo ( ) const

◆ setAccessToken()

void Jellyfin::DTO::AuthenticationResult::setAccessToken ( QString newAccessToken)

Gets or sets the access token.

◆ setAccessTokenNull()

void Jellyfin::DTO::AuthenticationResult::setAccessTokenNull ( )

◆ setFromJson()

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

◆ setServerId()

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

Gets or sets the server id.

◆ setServerIdNull()

void Jellyfin::DTO::AuthenticationResult::setServerIdNull ( )

◆ setSessionInfo()

void Jellyfin::DTO::AuthenticationResult::setSessionInfo ( QSharedPointer< SessionInfoDto > newSessionInfo)

◆ setUser()

void Jellyfin::DTO::AuthenticationResult::setUser ( QSharedPointer< UserDto > newUser)

◆ toJson()

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

◆ user()

QSharedPointer< UserDto > Jellyfin::DTO::AuthenticationResult::user ( ) const

Member Data Documentation

◆ m_accessToken

QString Jellyfin::DTO::AuthenticationResult::m_accessToken
protected

◆ m_serverId

QString Jellyfin::DTO::AuthenticationResult::m_serverId
protected

◆ m_sessionInfo

QSharedPointer<SessionInfoDto> Jellyfin::DTO::AuthenticationResult::m_sessionInfo = QSharedPointer<SessionInfoDto>()
protected

◆ m_user

QSharedPointer<UserDto> Jellyfin::DTO::AuthenticationResult::m_user = QSharedPointer<UserDto>()
protected

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