SyncJob.cs 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 quality.
  19. /// </summary>
  20. /// <value>The quality.</value>
  21. public SyncQuality Quality { get; set; }
  22. /// <summary>
  23. /// Gets or sets the current progress.
  24. /// </summary>
  25. /// <value>The current progress.</value>
  26. public double? Progress { get; set; }
  27. /// <summary>
  28. /// Gets or sets the name.
  29. /// </summary>
  30. /// <value>The name.</value>
  31. public string Name { get; set; }
  32. /// <summary>
  33. /// Gets or sets the status.
  34. /// </summary>
  35. /// <value>The status.</value>
  36. public SyncJobStatus Status { get; set; }
  37. /// <summary>
  38. /// Gets or sets the user identifier.
  39. /// </summary>
  40. /// <value>The user identifier.</value>
  41. public string UserId { get; set; }
  42. /// <summary>
  43. /// Gets or sets a value indicating whether [unwatched only].
  44. /// </summary>
  45. /// <value><c>true</c> if [unwatched only]; otherwise, <c>false</c>.</value>
  46. public bool UnwatchedOnly { get; set; }
  47. /// <summary>
  48. /// Gets or sets the limit.
  49. /// </summary>
  50. /// <value>The limit.</value>
  51. public long? Limit { get; set; }
  52. /// <summary>
  53. /// Gets or sets the type of the limit.
  54. /// </summary>
  55. /// <value>The type of the limit.</value>
  56. public SyncLimitType? LimitType { get; set; }
  57. /// <summary>
  58. /// Gets or sets the requested item ids.
  59. /// </summary>
  60. /// <value>The requested item ids.</value>
  61. public List<string> RequestedItemIds { get; set; }
  62. /// <summary>
  63. /// Gets or sets a value indicating whether this instance is dynamic.
  64. /// </summary>
  65. /// <value><c>true</c> if this instance is dynamic; otherwise, <c>false</c>.</value>
  66. public bool IsDynamic { get; set; }
  67. /// <summary>
  68. /// Gets or sets the date created.
  69. /// </summary>
  70. /// <value>The date created.</value>
  71. public DateTime DateCreated { get; set; }
  72. /// <summary>
  73. /// Gets or sets the date last modified.
  74. /// </summary>
  75. /// <value>The date last modified.</value>
  76. public DateTime DateLastModified { get; set; }
  77. /// <summary>
  78. /// Gets or sets the item count.
  79. /// </summary>
  80. /// <value>The item count.</value>
  81. public int ItemCount { get; set; }
  82. public string ParentName { get; set; }
  83. public string PrimaryImageItemId { get; set; }
  84. public string PrimaryImageTag { get; set; }
  85. public double? PrimaryImageAspectRatio { get; set; }
  86. public SyncJob()
  87. {
  88. RequestedItemIds = new List<string>();
  89. }
  90. }
  91. }