UserItemDataDto.cs 1.8 KB

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