30#ifndef JELLYFIN_DTO_USERITEMDATADTO_H
31#define JELLYFIN_DTO_USERITEMDATADTO_H
67 QJsonObject
toJson()
const;
73 std::optional<double>
rating()
const;
77 void setRating(std::optional<double> newRating);
133 std::optional<bool>
likes()
const;
137 void setLikes(std::optional<bool> newLikes);
168 void setKey(QString newKey);
Definition useritemdatadto.h:49
void setPlayedPercentage(std::optional< double > newPlayedPercentage)
Gets or sets the played percentage.
Definition useritemdatadto.cpp:160
qint64 m_playbackPositionTicks
Definition useritemdatadto.h:188
void replaceData(UserItemDataDto &other)
Definition useritemdatadto.cpp:64
void setUnplayedItemCount(std::optional< qint32 > newUnplayedItemCount)
Gets or sets the unplayed item count.
Definition useritemdatadto.cpp:173
bool itemIdNull() const
Definition useritemdatadto.cpp:252
bool unplayedItemCountNull() const
Definition useritemdatadto.cpp:176
std::optional< bool > m_likes
Definition useritemdatadto.h:191
bool lastPlayedDateNull() const
Definition useritemdatadto.cpp:220
qint64 playbackPositionTicks() const
Gets or sets the playback position ticks.
Definition useritemdatadto.cpp:184
void setKey(QString newKey)
Gets or sets the key.
Definition useritemdatadto.cpp:236
std::optional< double > m_rating
Definition useritemdatadto.h:185
void setPlayed(bool newPlayed)
Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is played.
Definition useritemdatadto.cpp:230
static UserItemDataDto fromJson(QJsonObject source)
Definition useritemdatadto.cpp:78
QString key() const
Gets or sets the key.
Definition useritemdatadto.cpp:234
bool playedPercentageNull() const
Definition useritemdatadto.cpp:163
std::optional< double > playedPercentage() const
Gets or sets the played percentage.
Definition useritemdatadto.cpp:158
bool ratingNull() const
Definition useritemdatadto.cpp:150
std::optional< double > rating() const
Gets or sets the rating.
Definition useritemdatadto.cpp:145
void setPlayCount(qint32 newPlayCount)
Gets or sets the play count.
Definition useritemdatadto.cpp:192
bool m_isFavorite
Definition useritemdatadto.h:190
void setLastPlayedDate(QDateTime newLastPlayedDate)
Gets or sets the last played date.
Definition useritemdatadto.cpp:217
void setLastPlayedDateNull()
Definition useritemdatadto.cpp:224
std::optional< qint32 > m_unplayedItemCount
Definition useritemdatadto.h:187
QDateTime lastPlayedDate() const
Gets or sets the last played date.
Definition useritemdatadto.cpp:215
bool isFavorite() const
Gets or sets a value indicating whether this instance is favorite.
Definition useritemdatadto.cpp:196
void setRatingNull()
Definition useritemdatadto.cpp:154
void setRating(std::optional< double > newRating)
Gets or sets the rating.
Definition useritemdatadto.cpp:147
void setItemIdNull()
Definition useritemdatadto.cpp:256
void setKeyNull()
Definition useritemdatadto.cpp:243
bool keyNull() const
Definition useritemdatadto.cpp:239
std::optional< qint32 > unplayedItemCount() const
Gets or sets the unplayed item count.
Definition useritemdatadto.cpp:171
std::optional< double > m_playedPercentage
Definition useritemdatadto.h:186
bool played() const
Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is played.
Definition useritemdatadto.cpp:228
bool likesNull() const
Definition useritemdatadto.cpp:207
void setPlayedPercentageNull()
Definition useritemdatadto.cpp:167
QJsonObject toJson() const
Definition useritemdatadto.cpp:100
void setIsFavorite(bool newIsFavorite)
Gets or sets a value indicating whether this instance is favorite.
Definition useritemdatadto.cpp:198
qint32 playCount() const
Gets or sets the play count.
Definition useritemdatadto.cpp:190
void setPlaybackPositionTicks(qint64 newPlaybackPositionTicks)
Gets or sets the playback position ticks.
Definition useritemdatadto.cpp:186
QString m_itemId
Definition useritemdatadto.h:195
QString itemId() const
Gets or sets the item identifier.
Definition useritemdatadto.cpp:247
QString m_key
Definition useritemdatadto.h:194
std::optional< bool > likes() const
Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is likes.
Definition useritemdatadto.cpp:202
qint32 m_playCount
Definition useritemdatadto.h:189
void setItemId(QString newItemId)
Gets or sets the item identifier.
Definition useritemdatadto.cpp:249
void setLikesNull()
Definition useritemdatadto.cpp:211
void setLikes(std::optional< bool > newLikes)
Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is likes.
Definition useritemdatadto.cpp:204
void setFromJson(QJsonObject source)
Definition useritemdatadto.cpp:85
QDateTime m_lastPlayedDate
Definition useritemdatadto.h:192
void setUnplayedItemCountNull()
Definition useritemdatadto.cpp:180
bool m_played
Definition useritemdatadto.h:193
AccessSchedule fromJsonValue(const QJsonValue &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:133
QJsonValue toJsonValue(const AccessSchedule &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:139
Definition jsonconvimpl.h:45