UserItemDataDto.cs 2.4 KB

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