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

#include <useritemdatadto.h>

Public Member Functions

 UserItemDataDto (qint64 playbackPositionTicks, qint32 playCount, bool isFavorite, bool played)
 
 UserItemDataDto (const UserItemDataDto &other)
 
void replaceData (UserItemDataDto &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
std::optional< double > rating () const
 Gets or sets the rating.
 
void setRating (std::optional< double > newRating)
 Gets or sets the rating.
 
bool ratingNull () const
 
void setRatingNull ()
 
std::optional< double > playedPercentage () const
 Gets or sets the played percentage.
 
void setPlayedPercentage (std::optional< double > newPlayedPercentage)
 Gets or sets the played percentage.
 
bool playedPercentageNull () const
 
void setPlayedPercentageNull ()
 
std::optional< qint32 > unplayedItemCount () const
 Gets or sets the unplayed item count.
 
void setUnplayedItemCount (std::optional< qint32 > newUnplayedItemCount)
 Gets or sets the unplayed item count.
 
bool unplayedItemCountNull () const
 
void setUnplayedItemCountNull ()
 
qint64 playbackPositionTicks () const
 Gets or sets the playback position ticks.
 
void setPlaybackPositionTicks (qint64 newPlaybackPositionTicks)
 Gets or sets the playback position ticks.
 
qint32 playCount () const
 Gets or sets the play count.
 
void setPlayCount (qint32 newPlayCount)
 Gets or sets the play count.
 
bool isFavorite () const
 Gets or sets a value indicating whether this instance is favorite.
 
void setIsFavorite (bool newIsFavorite)
 Gets or sets a value indicating whether this instance is favorite.
 
std::optional< bool > likes () const
 Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is likes.
 
void setLikes (std::optional< bool > newLikes)
 Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is likes.
 
bool likesNull () const
 
void setLikesNull ()
 
QDateTime lastPlayedDate () const
 Gets or sets the last played date.
 
void setLastPlayedDate (QDateTime newLastPlayedDate)
 Gets or sets the last played date.
 
bool lastPlayedDateNull () const
 
void setLastPlayedDateNull ()
 
bool played () const
 Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is played.
 
void setPlayed (bool newPlayed)
 Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is played.
 
QString key () const
 Gets or sets the key.
 
void setKey (QString newKey)
 Gets or sets the key.
 
bool keyNull () const
 
void setKeyNull ()
 
QString itemId () const
 Gets or sets the item identifier.
 
void setItemId (QString newItemId)
 Gets or sets the item identifier.
 
bool itemIdNull () const
 
void setItemIdNull ()
 

Static Public Member Functions

static UserItemDataDto fromJson (QJsonObject source)
 

Protected Attributes

std::optional< double > m_rating = std::nullopt
 
std::optional< double > m_playedPercentage = std::nullopt
 
std::optional< qint32 > m_unplayedItemCount = std::nullopt
 
qint64 m_playbackPositionTicks
 
qint32 m_playCount
 
bool m_isFavorite
 
std::optional< bool > m_likes = std::nullopt
 
QDateTime m_lastPlayedDate
 
bool m_played
 
QString m_key
 
QString m_itemId
 

Constructor & Destructor Documentation

◆ UserItemDataDto() [1/2]

Jellyfin::DTO::UserItemDataDto::UserItemDataDto ( qint64 playbackPositionTicks,
qint32 playCount,
bool isFavorite,
bool played )

◆ UserItemDataDto() [2/2]

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

Member Function Documentation

◆ fromJson()

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

◆ isFavorite()

bool Jellyfin::DTO::UserItemDataDto::isFavorite ( ) const

Gets or sets a value indicating whether this instance is favorite.

◆ itemId()

QString Jellyfin::DTO::UserItemDataDto::itemId ( ) const

Gets or sets the item identifier.

◆ itemIdNull()

bool Jellyfin::DTO::UserItemDataDto::itemIdNull ( ) const

◆ key()

QString Jellyfin::DTO::UserItemDataDto::key ( ) const

Gets or sets the key.

◆ keyNull()

bool Jellyfin::DTO::UserItemDataDto::keyNull ( ) const

◆ lastPlayedDate()

QDateTime Jellyfin::DTO::UserItemDataDto::lastPlayedDate ( ) const

Gets or sets the last played date.

◆ lastPlayedDateNull()

bool Jellyfin::DTO::UserItemDataDto::lastPlayedDateNull ( ) const

◆ likes()

std::optional< bool > Jellyfin::DTO::UserItemDataDto::likes ( ) const

Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is likes.

◆ likesNull()

bool Jellyfin::DTO::UserItemDataDto::likesNull ( ) const

◆ playbackPositionTicks()

qint64 Jellyfin::DTO::UserItemDataDto::playbackPositionTicks ( ) const

Gets or sets the playback position ticks.

◆ playCount()

qint32 Jellyfin::DTO::UserItemDataDto::playCount ( ) const

Gets or sets the play count.

◆ played()

bool Jellyfin::DTO::UserItemDataDto::played ( ) const

Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is played.

◆ playedPercentage()

std::optional< double > Jellyfin::DTO::UserItemDataDto::playedPercentage ( ) const

Gets or sets the played percentage.

◆ playedPercentageNull()

bool Jellyfin::DTO::UserItemDataDto::playedPercentageNull ( ) const

◆ rating()

std::optional< double > Jellyfin::DTO::UserItemDataDto::rating ( ) const

Gets or sets the rating.

◆ ratingNull()

bool Jellyfin::DTO::UserItemDataDto::ratingNull ( ) const

◆ replaceData()

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

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

◆ setFromJson()

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

◆ setIsFavorite()

void Jellyfin::DTO::UserItemDataDto::setIsFavorite ( bool newIsFavorite)

Gets or sets a value indicating whether this instance is favorite.

◆ setItemId()

void Jellyfin::DTO::UserItemDataDto::setItemId ( QString newItemId)

Gets or sets the item identifier.

◆ setItemIdNull()

void Jellyfin::DTO::UserItemDataDto::setItemIdNull ( )

◆ setKey()

void Jellyfin::DTO::UserItemDataDto::setKey ( QString newKey)

Gets or sets the key.

◆ setKeyNull()

void Jellyfin::DTO::UserItemDataDto::setKeyNull ( )

◆ setLastPlayedDate()

void Jellyfin::DTO::UserItemDataDto::setLastPlayedDate ( QDateTime newLastPlayedDate)

Gets or sets the last played date.

◆ setLastPlayedDateNull()

void Jellyfin::DTO::UserItemDataDto::setLastPlayedDateNull ( )

◆ setLikes()

void Jellyfin::DTO::UserItemDataDto::setLikes ( std::optional< bool > newLikes)

Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is likes.

◆ setLikesNull()

void Jellyfin::DTO::UserItemDataDto::setLikesNull ( )

◆ setPlaybackPositionTicks()

void Jellyfin::DTO::UserItemDataDto::setPlaybackPositionTicks ( qint64 newPlaybackPositionTicks)

Gets or sets the playback position ticks.

◆ setPlayCount()

void Jellyfin::DTO::UserItemDataDto::setPlayCount ( qint32 newPlayCount)

Gets or sets the play count.

◆ setPlayed()

void Jellyfin::DTO::UserItemDataDto::setPlayed ( bool newPlayed)

Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is played.

◆ setPlayedPercentage()

void Jellyfin::DTO::UserItemDataDto::setPlayedPercentage ( std::optional< double > newPlayedPercentage)

Gets or sets the played percentage.

◆ setPlayedPercentageNull()

void Jellyfin::DTO::UserItemDataDto::setPlayedPercentageNull ( )

◆ setRating()

void Jellyfin::DTO::UserItemDataDto::setRating ( std::optional< double > newRating)

Gets or sets the rating.

◆ setRatingNull()

void Jellyfin::DTO::UserItemDataDto::setRatingNull ( )

◆ setUnplayedItemCount()

void Jellyfin::DTO::UserItemDataDto::setUnplayedItemCount ( std::optional< qint32 > newUnplayedItemCount)

Gets or sets the unplayed item count.

◆ setUnplayedItemCountNull()

void Jellyfin::DTO::UserItemDataDto::setUnplayedItemCountNull ( )

◆ toJson()

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

◆ unplayedItemCount()

std::optional< qint32 > Jellyfin::DTO::UserItemDataDto::unplayedItemCount ( ) const

Gets or sets the unplayed item count.

◆ unplayedItemCountNull()

bool Jellyfin::DTO::UserItemDataDto::unplayedItemCountNull ( ) const

Member Data Documentation

◆ m_isFavorite

bool Jellyfin::DTO::UserItemDataDto::m_isFavorite
protected

◆ m_itemId

QString Jellyfin::DTO::UserItemDataDto::m_itemId
protected

◆ m_key

QString Jellyfin::DTO::UserItemDataDto::m_key
protected

◆ m_lastPlayedDate

QDateTime Jellyfin::DTO::UserItemDataDto::m_lastPlayedDate
protected

◆ m_likes

std::optional<bool> Jellyfin::DTO::UserItemDataDto::m_likes = std::nullopt
protected

◆ m_playbackPositionTicks

qint64 Jellyfin::DTO::UserItemDataDto::m_playbackPositionTicks
protected

◆ m_playCount

qint32 Jellyfin::DTO::UserItemDataDto::m_playCount
protected

◆ m_played

bool Jellyfin::DTO::UserItemDataDto::m_played
protected

◆ m_playedPercentage

std::optional<double> Jellyfin::DTO::UserItemDataDto::m_playedPercentage = std::nullopt
protected

◆ m_rating

std::optional<double> Jellyfin::DTO::UserItemDataDto::m_rating = std::nullopt
protected

◆ m_unplayedItemCount

std::optional<qint32> Jellyfin::DTO::UserItemDataDto::m_unplayedItemCount = std::nullopt
protected

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