UserItemDataDto.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. using System.ComponentModel;
  3. namespace MediaBrowser.Model.Dto
  4. {
  5. /// <summary>
  6. /// Class UserItemDataDto
  7. /// </summary>
  8. public class UserItemDataDto : INotifyPropertyChanged
  9. {
  10. /// <summary>
  11. /// Gets or sets the rating.
  12. /// </summary>
  13. /// <value>The rating.</value>
  14. public double? Rating { get; set; }
  15. /// <summary>
  16. /// Gets or sets the playback position ticks.
  17. /// </summary>
  18. /// <value>The playback position ticks.</value>
  19. public long PlaybackPositionTicks { get; set; }
  20. /// <summary>
  21. /// Gets or sets the play count.
  22. /// </summary>
  23. /// <value>The play count.</value>
  24. public int PlayCount { get; set; }
  25. /// <summary>
  26. /// Gets or sets a value indicating whether this instance is favorite.
  27. /// </summary>
  28. /// <value><c>true</c> if this instance is favorite; otherwise, <c>false</c>.</value>
  29. public bool IsFavorite { get; set; }
  30. /// <summary>
  31. /// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is likes.
  32. /// </summary>
  33. /// <value><c>null</c> if [likes] contains no value, <c>true</c> if [likes]; otherwise, <c>false</c>.</value>
  34. public bool? Likes { get; set; }
  35. /// <summary>
  36. /// Gets or sets the last played date.
  37. /// </summary>
  38. /// <value>The last played date.</value>
  39. public DateTime? LastPlayedDate { get; set; }
  40. /// <summary>
  41. /// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is played.
  42. /// </summary>
  43. /// <value><c>true</c> if played; otherwise, <c>false</c>.</value>
  44. public bool Played { get; set; }
  45. public event PropertyChangedEventHandler PropertyChanged;
  46. }
  47. }