Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
|
#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 |
Jellyfin::DTO::UserItemDataDto::UserItemDataDto | ( | qint64 | playbackPositionTicks, |
qint32 | playCount, | ||
bool | isFavorite, | ||
bool | played ) |
Jellyfin::DTO::UserItemDataDto::UserItemDataDto | ( | const UserItemDataDto & | other | ) |
|
static |
bool Jellyfin::DTO::UserItemDataDto::isFavorite | ( | ) | const |
Gets or sets a value indicating whether this instance is favorite.
QString Jellyfin::DTO::UserItemDataDto::itemId | ( | ) | const |
Gets or sets the item identifier.
bool Jellyfin::DTO::UserItemDataDto::itemIdNull | ( | ) | const |
QString Jellyfin::DTO::UserItemDataDto::key | ( | ) | const |
Gets or sets the key.
bool Jellyfin::DTO::UserItemDataDto::keyNull | ( | ) | const |
QDateTime Jellyfin::DTO::UserItemDataDto::lastPlayedDate | ( | ) | const |
Gets or sets the last played date.
bool Jellyfin::DTO::UserItemDataDto::lastPlayedDateNull | ( | ) | const |
std::optional< bool > Jellyfin::DTO::UserItemDataDto::likes | ( | ) | const |
Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is likes.
bool Jellyfin::DTO::UserItemDataDto::likesNull | ( | ) | const |
qint64 Jellyfin::DTO::UserItemDataDto::playbackPositionTicks | ( | ) | const |
Gets or sets the playback position ticks.
qint32 Jellyfin::DTO::UserItemDataDto::playCount | ( | ) | const |
Gets or sets the play count.
bool Jellyfin::DTO::UserItemDataDto::played | ( | ) | const |
Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is played.
std::optional< double > Jellyfin::DTO::UserItemDataDto::playedPercentage | ( | ) | const |
Gets or sets the played percentage.
bool Jellyfin::DTO::UserItemDataDto::playedPercentageNull | ( | ) | const |
std::optional< double > Jellyfin::DTO::UserItemDataDto::rating | ( | ) | const |
Gets or sets the rating.
bool Jellyfin::DTO::UserItemDataDto::ratingNull | ( | ) | const |
void Jellyfin::DTO::UserItemDataDto::replaceData | ( | UserItemDataDto & | other | ) |
Replaces the data being hold by this class with that of the other.
void Jellyfin::DTO::UserItemDataDto::setFromJson | ( | QJsonObject | source | ) |
void Jellyfin::DTO::UserItemDataDto::setIsFavorite | ( | bool | newIsFavorite | ) |
Gets or sets a value indicating whether this instance is favorite.
void Jellyfin::DTO::UserItemDataDto::setItemId | ( | QString | newItemId | ) |
Gets or sets the item identifier.
void Jellyfin::DTO::UserItemDataDto::setItemIdNull | ( | ) |
void Jellyfin::DTO::UserItemDataDto::setKey | ( | QString | newKey | ) |
Gets or sets the key.
void Jellyfin::DTO::UserItemDataDto::setKeyNull | ( | ) |
void Jellyfin::DTO::UserItemDataDto::setLastPlayedDate | ( | QDateTime | newLastPlayedDate | ) |
Gets or sets the last played date.
void Jellyfin::DTO::UserItemDataDto::setLastPlayedDateNull | ( | ) |
void Jellyfin::DTO::UserItemDataDto::setLikes | ( | std::optional< bool > | newLikes | ) |
Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is likes.
void Jellyfin::DTO::UserItemDataDto::setLikesNull | ( | ) |
void Jellyfin::DTO::UserItemDataDto::setPlaybackPositionTicks | ( | qint64 | newPlaybackPositionTicks | ) |
Gets or sets the playback position ticks.
void Jellyfin::DTO::UserItemDataDto::setPlayCount | ( | qint32 | newPlayCount | ) |
Gets or sets the play count.
void Jellyfin::DTO::UserItemDataDto::setPlayed | ( | bool | newPlayed | ) |
Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is played.
void Jellyfin::DTO::UserItemDataDto::setPlayedPercentage | ( | std::optional< double > | newPlayedPercentage | ) |
Gets or sets the played percentage.
void Jellyfin::DTO::UserItemDataDto::setPlayedPercentageNull | ( | ) |
void Jellyfin::DTO::UserItemDataDto::setRating | ( | std::optional< double > | newRating | ) |
Gets or sets the rating.
void Jellyfin::DTO::UserItemDataDto::setRatingNull | ( | ) |
void Jellyfin::DTO::UserItemDataDto::setUnplayedItemCount | ( | std::optional< qint32 > | newUnplayedItemCount | ) |
Gets or sets the unplayed item count.
void Jellyfin::DTO::UserItemDataDto::setUnplayedItemCountNull | ( | ) |
QJsonObject Jellyfin::DTO::UserItemDataDto::toJson | ( | ) | const |
std::optional< qint32 > Jellyfin::DTO::UserItemDataDto::unplayedItemCount | ( | ) | const |
Gets or sets the unplayed item count.
bool Jellyfin::DTO::UserItemDataDto::unplayedItemCountNull | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |