UserItemDataDto.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System;
  2. using System.ComponentModel;
  3. using MediaBrowser.Model.Extensions;
  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 playback position ticks.
  18. /// </summary>
  19. /// <value>The playback position ticks.</value>
  20. public long PlaybackPositionTicks { get; set; }
  21. /// <summary>
  22. /// Gets or sets the play count.
  23. /// </summary>
  24. /// <value>The play count.</value>
  25. public int PlayCount { get; set; }
  26. /// <summary>
  27. /// Gets or sets a value indicating whether this instance is favorite.
  28. /// </summary>
  29. /// <value><c>true</c> if this instance is favorite; otherwise, <c>false</c>.</value>
  30. public bool IsFavorite { get; set; }
  31. /// <summary>
  32. /// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is likes.
  33. /// </summary>
  34. /// <value><c>null</c> if [likes] contains no value, <c>true</c> if [likes]; otherwise, <c>false</c>.</value>
  35. public bool? Likes { get; set; }
  36. /// <summary>
  37. /// Gets or sets the last played date.
  38. /// </summary>
  39. /// <value>The last played date.</value>
  40. public DateTime? LastPlayedDate { 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. public bool Played { get; set; }
  46. /// <summary>
  47. /// Gets or sets the key.
  48. /// </summary>
  49. /// <value>The key.</value>
  50. public string Key { get; set; }
  51. public event PropertyChangedEventHandler PropertyChanged;
  52. }
  53. }