UserItemDataDto.cs 2.0 KB

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