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

#include <playlistuserpermissions.h>

Public Member Functions

 PlaylistUserPermissions (QString userId, bool canEdit)
 PlaylistUserPermissions (const PlaylistUserPermissions &other)
void replaceData (PlaylistUserPermissions &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QString userId () const
 Gets or sets the user id.
void setUserId (QString newUserId)
 Gets or sets the user id.
bool canEdit () const
 Gets or sets a value indicating whether the user has edit permissions.
void setCanEdit (bool newCanEdit)
 Gets or sets a value indicating whether the user has edit permissions.

Static Public Member Functions

static PlaylistUserPermissions fromJson (QJsonObject source)

Protected Attributes

QString m_userId
bool m_canEdit

Constructor & Destructor Documentation

◆ PlaylistUserPermissions() [1/2]

Jellyfin::DTO::PlaylistUserPermissions::PlaylistUserPermissions ( QString userId,
bool canEdit )

◆ PlaylistUserPermissions() [2/2]

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

Member Function Documentation

◆ canEdit()

bool Jellyfin::DTO::PlaylistUserPermissions::canEdit ( ) const

Gets or sets a value indicating whether the user has edit permissions.

◆ fromJson()

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

◆ replaceData()

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

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

◆ setCanEdit()

void Jellyfin::DTO::PlaylistUserPermissions::setCanEdit ( bool newCanEdit)

Gets or sets a value indicating whether the user has edit permissions.

◆ setFromJson()

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

◆ setUserId()

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

Gets or sets the user id.

◆ toJson()

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

◆ userId()

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

Gets or sets the user id.

Member Data Documentation

◆ m_canEdit

bool Jellyfin::DTO::PlaylistUserPermissions::m_canEdit
protected

◆ m_userId

QString Jellyfin::DTO::PlaylistUserPermissions::m_userId
protected

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