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< SessionInfo > 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< SessionInfosessionInfo () const
 
void setSessionInfo (QSharedPointer< SessionInfo > newSessionInfo)
 
QString accessToken () const
 
void setAccessToken (QString newAccessToken)
 
bool accessTokenNull () const
 
void setAccessTokenNull ()
 
QString serverId () const
 
void setServerId (QString newServerId)
 
bool serverIdNull () const
 
void setServerIdNull ()
 

Static Public Member Functions

static AuthenticationResult fromJson (QJsonObject source)
 

Protected Attributes

QSharedPointer< UserDtom_user = QSharedPointer<UserDto>()
 
QSharedPointer< SessionInfom_sessionInfo = QSharedPointer<SessionInfo>()
 
QString m_accessToken
 
QString m_serverId
 

Constructor & Destructor Documentation

◆ AuthenticationResult() [1/2]

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

◆ AuthenticationResult() [2/2]

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

Member Function Documentation

◆ accessToken()

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

◆ 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

◆ serverIdNull()

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

◆ sessionInfo()

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

◆ setAccessToken()

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

◆ setAccessTokenNull()

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

◆ setFromJson()

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

◆ setServerId()

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

◆ setServerIdNull()

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

◆ setSessionInfo()

void Jellyfin::DTO::AuthenticationResult::setSessionInfo ( QSharedPointer< SessionInfo > 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<SessionInfo> Jellyfin::DTO::AuthenticationResult::m_sessionInfo = QSharedPointer<SessionInfo>()
protected

◆ m_user

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

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