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

#include <createplaylistdto.h>

Public Member Functions

 CreatePlaylistDto (QString name, QStringList ids, MediaType mediaType, QList< PlaylistUserPermissions > users, bool isPublic)
 CreatePlaylistDto (const CreatePlaylistDto &other)
void replaceData (CreatePlaylistDto &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QString name () const
 Gets or sets the name of the new playlist.
void setName (QString newName)
 Gets or sets the name of the new playlist.
QStringList ids () const
 Gets or sets item ids to add to the playlist.
void setIds (QStringList newIds)
 Gets or sets item ids to add to the playlist.
QString userId () const
 Gets or sets the user id.
void setUserId (QString newUserId)
 Gets or sets the user id.
bool userIdNull () const
void setUserIdNull ()
MediaType mediaType () const
void setMediaType (MediaType newMediaType)
QList< PlaylistUserPermissionsusers () const
 Gets or sets the playlist users.
void setUsers (QList< PlaylistUserPermissions > newUsers)
 Gets or sets the playlist users.
bool isPublic () const
 Gets or sets a value indicating whether the playlist is public.
void setIsPublic (bool newIsPublic)
 Gets or sets a value indicating whether the playlist is public.

Static Public Member Functions

static CreatePlaylistDto fromJson (QJsonObject source)

Protected Attributes

QString m_name
QStringList m_ids
QString m_userId
MediaType m_mediaType
QList< PlaylistUserPermissionsm_users
bool m_isPublic

Constructor & Destructor Documentation

◆ CreatePlaylistDto() [1/2]

Jellyfin::DTO::CreatePlaylistDto::CreatePlaylistDto ( QString name,
QStringList ids,
MediaType mediaType,
QList< PlaylistUserPermissions > users,
bool isPublic )

◆ CreatePlaylistDto() [2/2]

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

Member Function Documentation

◆ fromJson()

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

◆ ids()

QStringList Jellyfin::DTO::CreatePlaylistDto::ids ( ) const

Gets or sets item ids to add to the playlist.

◆ isPublic()

bool Jellyfin::DTO::CreatePlaylistDto::isPublic ( ) const

Gets or sets a value indicating whether the playlist is public.

◆ mediaType()

MediaType Jellyfin::DTO::CreatePlaylistDto::mediaType ( ) const

◆ name()

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

Gets or sets the name of the new playlist.

◆ replaceData()

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

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

◆ setFromJson()

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

◆ setIds()

void Jellyfin::DTO::CreatePlaylistDto::setIds ( QStringList newIds)

Gets or sets item ids to add to the playlist.

◆ setIsPublic()

void Jellyfin::DTO::CreatePlaylistDto::setIsPublic ( bool newIsPublic)

Gets or sets a value indicating whether the playlist is public.

◆ setMediaType()

void Jellyfin::DTO::CreatePlaylistDto::setMediaType ( MediaType newMediaType)

◆ setName()

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

Gets or sets the name of the new playlist.

◆ setUserId()

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

Gets or sets the user id.

◆ setUserIdNull()

void Jellyfin::DTO::CreatePlaylistDto::setUserIdNull ( )

◆ setUsers()

void Jellyfin::DTO::CreatePlaylistDto::setUsers ( QList< PlaylistUserPermissions > newUsers)

Gets or sets the playlist users.

◆ toJson()

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

◆ userId()

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

Gets or sets the user id.

◆ userIdNull()

bool Jellyfin::DTO::CreatePlaylistDto::userIdNull ( ) const

◆ users()

QList< PlaylistUserPermissions > Jellyfin::DTO::CreatePlaylistDto::users ( ) const

Gets or sets the playlist users.

Member Data Documentation

◆ m_ids

QStringList Jellyfin::DTO::CreatePlaylistDto::m_ids
protected

◆ m_isPublic

bool Jellyfin::DTO::CreatePlaylistDto::m_isPublic
protected

◆ m_mediaType

MediaType Jellyfin::DTO::CreatePlaylistDto::m_mediaType
protected

◆ m_name

QString Jellyfin::DTO::CreatePlaylistDto::m_name
protected

◆ m_userId

QString Jellyfin::DTO::CreatePlaylistDto::m_userId
protected

◆ m_users

QList<PlaylistUserPermissions> Jellyfin::DTO::CreatePlaylistDto::m_users
protected

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