UpdateUserItemDataDto.cs 2.5 KB

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