SyncJobItem.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Dto;
  4. namespace MediaBrowser.Model.Sync
  5. {
  6. public class SyncJobItem
  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 job identifier.
  15. /// </summary>
  16. /// <value>The job identifier.</value>
  17. public string JobId { get; set; }
  18. /// <summary>
  19. /// Gets or sets the item identifier.
  20. /// </summary>
  21. /// <value>The item identifier.</value>
  22. public string ItemId { get; set; }
  23. /// <summary>
  24. /// Gets or sets the name of the item.
  25. /// </summary>
  26. /// <value>The name of the item.</value>
  27. public string ItemName { get; set; }
  28. /// <summary>
  29. /// Gets or sets the media source identifier.
  30. /// </summary>
  31. /// <value>The media source identifier.</value>
  32. public string MediaSourceId { get; set; }
  33. /// <summary>
  34. /// Gets or sets the media source.
  35. /// </summary>
  36. /// <value>The media source.</value>
  37. public MediaSourceInfo MediaSource { get; set; }
  38. /// <summary>
  39. /// Gets or sets the target identifier.
  40. /// </summary>
  41. /// <value>The target identifier.</value>
  42. public string TargetId { get; set; }
  43. /// <summary>
  44. /// Gets or sets the output path.
  45. /// </summary>
  46. /// <value>The output path.</value>
  47. public string OutputPath { get; set; }
  48. /// <summary>
  49. /// Gets or sets the status.
  50. /// </summary>
  51. /// <value>The status.</value>
  52. public SyncJobItemStatus Status { get; set; }
  53. /// <summary>
  54. /// Gets or sets the current progress.
  55. /// </summary>
  56. /// <value>The current progress.</value>
  57. public double? Progress { get; set; }
  58. /// <summary>
  59. /// Gets or sets the date created.
  60. /// </summary>
  61. /// <value>The date created.</value>
  62. public DateTime DateCreated { get; set; }
  63. /// <summary>
  64. /// Gets or sets the primary image item identifier.
  65. /// </summary>
  66. /// <value>The primary image item identifier.</value>
  67. public string PrimaryImageItemId { get; set; }
  68. /// <summary>
  69. /// Gets or sets the primary image tag.
  70. /// </summary>
  71. /// <value>The primary image tag.</value>
  72. public string PrimaryImageTag { get; set; }
  73. /// <summary>
  74. /// Gets or sets the temporary path.
  75. /// </summary>
  76. /// <value>The temporary path.</value>
  77. public string TemporaryPath { get; set; }
  78. /// <summary>
  79. /// Gets or sets the additional files.
  80. /// </summary>
  81. /// <value>The additional files.</value>
  82. public List<ItemFileInfo> AdditionalFiles { get; set; }
  83. /// <summary>
  84. /// Gets or sets a value indicating whether this instance is marked for removal.
  85. /// </summary>
  86. /// <value><c>true</c> if this instance is marked for removal; otherwise, <c>false</c>.</value>
  87. public bool IsMarkedForRemoval { get; set; }
  88. /// <summary>
  89. /// Gets or sets the index of the job item.
  90. /// </summary>
  91. /// <value>The index of the job item.</value>
  92. public int JobItemIndex { get; set; }
  93. public SyncJobItem()
  94. {
  95. AdditionalFiles = new List<ItemFileInfo>();
  96. }
  97. }
  98. }