SyncJob.cs 3.9 KB

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