SyncJob.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. namespace MediaBrowser.Model.Sync
  5. {
  6. public class SyncJob
  7. {
  8. public SyncJob()
  9. {
  10. RequestedItemIds = Array.Empty<Guid>();
  11. }
  12. /// <summary>
  13. /// Gets or sets the identifier.
  14. /// </summary>
  15. /// <value>The identifier.</value>
  16. public string Id { get; set; }
  17. /// <summary>
  18. /// Gets or sets the device identifier.
  19. /// </summary>
  20. /// <value>The device identifier.</value>
  21. public string TargetId { get; set; }
  22. /// <summary>
  23. /// Gets or sets the name of the target.
  24. /// </summary>
  25. /// <value>The name of the target.</value>
  26. public string TargetName { get; set; }
  27. /// <summary>
  28. /// Gets or sets the quality.
  29. /// </summary>
  30. /// <value>The quality.</value>
  31. public string Quality { get; set; }
  32. /// <summary>
  33. /// Gets or sets the bitrate.
  34. /// </summary>
  35. /// <value>The bitrate.</value>
  36. public int? Bitrate { get; set; }
  37. /// <summary>
  38. /// Gets or sets the profile.
  39. /// </summary>
  40. /// <value>The profile.</value>
  41. public string Profile { get; set; }
  42. /// <summary>
  43. /// Gets or sets the category.
  44. /// </summary>
  45. /// <value>The category.</value>
  46. public SyncCategory? Category { get; set; }
  47. /// <summary>
  48. /// Gets or sets the parent identifier.
  49. /// </summary>
  50. /// <value>The parent identifier.</value>
  51. public string ParentId { get; set; }
  52. /// <summary>
  53. /// Gets or sets the current progress.
  54. /// </summary>
  55. /// <value>The current progress.</value>
  56. public double? Progress { get; set; }
  57. /// <summary>
  58. /// Gets or sets the name.
  59. /// </summary>
  60. /// <value>The name.</value>
  61. public string Name { get; set; }
  62. /// <summary>
  63. /// Gets or sets the status.
  64. /// </summary>
  65. /// <value>The status.</value>
  66. public SyncJobStatus Status { get; set; }
  67. /// <summary>
  68. /// Gets or sets the user identifier.
  69. /// </summary>
  70. /// <value>The user identifier.</value>
  71. public string UserId { get; set; }
  72. /// <summary>
  73. /// Gets or sets a value indicating whether [unwatched only].
  74. /// </summary>
  75. /// <value><c>true</c> if [unwatched only]; otherwise, <c>false</c>.</value>
  76. public bool UnwatchedOnly { get; set; }
  77. /// <summary>
  78. /// Gets or sets a value indicating whether [synchronize new content].
  79. /// </summary>
  80. /// <value><c>true</c> if [synchronize new content]; otherwise, <c>false</c>.</value>
  81. public bool SyncNewContent { get; set; }
  82. /// <summary>
  83. /// Gets or sets the item limit.
  84. /// </summary>
  85. /// <value>The item limit.</value>
  86. public int? ItemLimit { get; set; }
  87. /// <summary>
  88. /// Gets or sets the requested item ids.
  89. /// </summary>
  90. /// <value>The requested item ids.</value>
  91. public Guid[] RequestedItemIds { get; set; }
  92. /// <summary>
  93. /// Gets or sets the date created.
  94. /// </summary>
  95. /// <value>The date created.</value>
  96. public DateTime DateCreated { get; set; }
  97. /// <summary>
  98. /// Gets or sets the date last modified.
  99. /// </summary>
  100. /// <value>The date last modified.</value>
  101. public DateTime DateLastModified { get; set; }
  102. /// <summary>
  103. /// Gets or sets the item count.
  104. /// </summary>
  105. /// <value>The item count.</value>
  106. public int ItemCount { get; set; }
  107. public string ParentName { get; set; }
  108. public string PrimaryImageItemId { get; set; }
  109. public string PrimaryImageTag { get; set; }
  110. }
  111. }