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

#include <playlistdto.h>

Public Member Functions

 PlaylistDto (bool openAccess, QList< PlaylistUserPermissions > shares, QStringList itemIds)
 PlaylistDto (const PlaylistDto &other)
void replaceData (PlaylistDto &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
bool openAccess () const
 Gets or sets a value indicating whether the playlist is publicly readable.
void setOpenAccess (bool newOpenAccess)
 Gets or sets a value indicating whether the playlist is publicly readable.
QList< PlaylistUserPermissionsshares () const
 Gets or sets the share permissions.
void setShares (QList< PlaylistUserPermissions > newShares)
 Gets or sets the share permissions.
QStringList itemIds () const
 Gets or sets the item ids.
void setItemIds (QStringList newItemIds)
 Gets or sets the item ids.

Static Public Member Functions

static PlaylistDto fromJson (QJsonObject source)

Protected Attributes

bool m_openAccess
QList< PlaylistUserPermissionsm_shares
QStringList m_itemIds

Constructor & Destructor Documentation

◆ PlaylistDto() [1/2]

Jellyfin::DTO::PlaylistDto::PlaylistDto ( bool openAccess,
QList< PlaylistUserPermissions > shares,
QStringList itemIds )

◆ PlaylistDto() [2/2]

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

Member Function Documentation

◆ fromJson()

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

◆ itemIds()

QStringList Jellyfin::DTO::PlaylistDto::itemIds ( ) const

Gets or sets the item ids.

◆ openAccess()

bool Jellyfin::DTO::PlaylistDto::openAccess ( ) const

Gets or sets a value indicating whether the playlist is publicly readable.

◆ replaceData()

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

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

◆ setFromJson()

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

◆ setItemIds()

void Jellyfin::DTO::PlaylistDto::setItemIds ( QStringList newItemIds)

Gets or sets the item ids.

◆ setOpenAccess()

void Jellyfin::DTO::PlaylistDto::setOpenAccess ( bool newOpenAccess)

Gets or sets a value indicating whether the playlist is publicly readable.

◆ setShares()

void Jellyfin::DTO::PlaylistDto::setShares ( QList< PlaylistUserPermissions > newShares)

Gets or sets the share permissions.

◆ shares()

QList< PlaylistUserPermissions > Jellyfin::DTO::PlaylistDto::shares ( ) const

Gets or sets the share permissions.

◆ toJson()

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

Member Data Documentation

◆ m_itemIds

QStringList Jellyfin::DTO::PlaylistDto::m_itemIds
protected

◆ m_openAccess

bool Jellyfin::DTO::PlaylistDto::m_openAccess
protected

◆ m_shares

QList<PlaylistUserPermissions> Jellyfin::DTO::PlaylistDto::m_shares
protected

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