SyncJob.cs 3.8 KB

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