SyncJob.cs 3.3 KB

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