2013-03-20 14:25:22 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel;
|
2013-02-21 01:33:05 +00:00
|
|
|
|
using ProtoBuf;
|
|
|
|
|
|
2013-02-21 17:50:46 +00:00
|
|
|
|
namespace MediaBrowser.Model.Dto
|
2013-02-21 01:33:05 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2013-02-22 20:11:17 +00:00
|
|
|
|
/// Class UserItemDataDto
|
2013-02-21 01:33:05 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
[ProtoContract]
|
2013-02-21 17:50:46 +00:00
|
|
|
|
public class UserItemDataDto : INotifyPropertyChanged
|
2013-02-21 01:33:05 +00:00
|
|
|
|
{
|
|
|
|
|
/// <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>
|
2013-02-21 17:50:46 +00:00
|
|
|
|
/// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is likes.
|
2013-02-21 01:33:05 +00:00
|
|
|
|
/// </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; }
|
|
|
|
|
|
2013-03-20 14:25:22 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the last played date.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The last played date.</value>
|
|
|
|
|
[ProtoMember(6)]
|
|
|
|
|
public DateTime? LastPlayedDate { get; set; }
|
|
|
|
|
|
2013-02-21 01:33:05 +00:00
|
|
|
|
/// <summary>
|
2013-02-21 17:50:46 +00:00
|
|
|
|
/// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is played.
|
2013-02-21 01:33:05 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if played; otherwise, <c>false</c>.</value>
|
2013-03-20 14:25:22 +00:00
|
|
|
|
[ProtoMember(7)]
|
2013-02-21 01:33:05 +00:00
|
|
|
|
public bool Played { get; set; }
|
|
|
|
|
|
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
|
}
|
|
|
|
|
}
|