SyncJob.cs 3.5 KB

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