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

#include <nameidpair.h>

Public Member Functions

 NameIdPair ()
 
 NameIdPair (const NameIdPair &other)
 
void replaceData (NameIdPair &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 jellyfinId () const
 Gets or sets the identifier.
 
void setJellyfinId (QString newJellyfinId)
 Gets or sets the identifier.
 
bool jellyfinIdNull () const
 
void setJellyfinIdNull ()
 

Static Public Member Functions

static NameIdPair fromJson (QJsonObject source)
 

Protected Attributes

QString m_name
 
QString m_jellyfinId
 

Constructor & Destructor Documentation

◆ NameIdPair() [1/2]

Jellyfin::DTO::NameIdPair::NameIdPair ( )

◆ NameIdPair() [2/2]

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

Member Function Documentation

◆ fromJson()

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

◆ jellyfinId()

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

Gets or sets the identifier.

◆ jellyfinIdNull()

bool Jellyfin::DTO::NameIdPair::jellyfinIdNull ( ) const

◆ name()

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

Gets or sets the name.

◆ nameNull()

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

◆ replaceData()

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

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

◆ setFromJson()

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

◆ setJellyfinId()

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

Gets or sets the identifier.

◆ setJellyfinIdNull()

void Jellyfin::DTO::NameIdPair::setJellyfinIdNull ( )

◆ setName()

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

Gets or sets the name.

◆ setNameNull()

void Jellyfin::DTO::NameIdPair::setNameNull ( )

◆ toJson()

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

Member Data Documentation

◆ m_jellyfinId

QString Jellyfin::DTO::NameIdPair::m_jellyfinId
protected

◆ m_name

QString Jellyfin::DTO::NameIdPair::m_name
protected

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