You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.8 KiB
57 lines
1.8 KiB
using System.ComponentModel;
|
|
using ProtoBuf;
|
|
|
|
namespace MediaBrowser.Model.Dto
|
|
{
|
|
/// <summary>
|
|
/// Class DtoUserItemData
|
|
/// </summary>
|
|
[ProtoContract]
|
|
public class UserItemDataDto : INotifyPropertyChanged
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the rating.
|
|
/// </summary>
|
|
/// <value>The rating.</value>
|
|
[ProtoMember(1)]
|
|
public float? Rating { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the playback position ticks.
|
|
/// </summary>
|
|
/// <value>The playback position ticks.</value>
|
|
[ProtoMember(2)]
|
|
public long PlaybackPositionTicks { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the play count.
|
|
/// </summary>
|
|
/// <value>The play count.</value>
|
|
[ProtoMember(3)]
|
|
public int PlayCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether this instance is favorite.
|
|
/// </summary>
|
|
/// <value><c>true</c> if this instance is favorite; otherwise, <c>false</c>.</value>
|
|
[ProtoMember(4)]
|
|
public bool IsFavorite { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is likes.
|
|
/// </summary>
|
|
/// <value><c>null</c> if [likes] contains no value, <c>true</c> if [likes]; otherwise, <c>false</c>.</value>
|
|
[ProtoMember(5)]
|
|
public bool? Likes { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is played.
|
|
/// </summary>
|
|
/// <value><c>true</c> if played; otherwise, <c>false</c>.</value>
|
|
[ProtoMember(6)]
|
|
public bool Played { get; set; }
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
}
|
|
}
|