2014-07-03 19:22:57 -07:00
|
|
|
|
using MediaBrowser.Model.Extensions;
|
|
|
|
|
using System;
|
2013-03-20 07:25:22 -07:00
|
|
|
|
using System.ComponentModel;
|
2013-02-20 18:33:05 -07:00
|
|
|
|
|
2013-02-21 10:50:46 -07:00
|
|
|
|
namespace MediaBrowser.Model.Dto
|
2013-02-20 18:33:05 -07:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2013-02-22 13:11:17 -07:00
|
|
|
|
/// Class UserItemDataDto
|
2013-02-20 18:33:05 -07:00
|
|
|
|
/// </summary>
|
2014-06-29 12:59:52 -07:00
|
|
|
|
public class UserItemDataDto : IHasPropertyChangedEvent
|
2013-02-20 18:33:05 -07:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the rating.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The rating.</value>
|
2013-05-09 06:46:06 -07:00
|
|
|
|
public double? Rating { get; set; }
|
2013-02-20 18:33:05 -07:00
|
|
|
|
|
2014-07-03 19:22:57 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the played percentage.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The played percentage.</value>
|
|
|
|
|
public double? PlayedPercentage { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the unplayed item count.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The unplayed item count.</value>
|
|
|
|
|
public int? UnplayedItemCount { get; set; }
|
|
|
|
|
|
2013-02-20 18:33:05 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the playback position ticks.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The playback position ticks.</value>
|
|
|
|
|
public long PlaybackPositionTicks { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the play count.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The play count.</value>
|
|
|
|
|
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>
|
|
|
|
|
public bool IsFavorite { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2013-02-21 10:50:46 -07:00
|
|
|
|
/// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is likes.
|
2013-02-20 18:33:05 -07:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>null</c> if [likes] contains no value, <c>true</c> if [likes]; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool? Likes { get; set; }
|
|
|
|
|
|
2013-03-20 07:25:22 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the last played date.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The last played date.</value>
|
|
|
|
|
public DateTime? LastPlayedDate { get; set; }
|
|
|
|
|
|
2013-02-20 18:33:05 -07:00
|
|
|
|
/// <summary>
|
2013-02-21 10:50:46 -07:00
|
|
|
|
/// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is played.
|
2013-02-20 18:33:05 -07:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if played; otherwise, <c>false</c>.</value>
|
|
|
|
|
public bool Played { get; set; }
|
|
|
|
|
|
2013-10-03 11:02:23 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the key.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The key.</value>
|
|
|
|
|
public string Key { get; set; }
|
|
|
|
|
|
2013-02-20 18:33:05 -07:00
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
|
}
|
|
|
|
|
}
|