SyncJobRequest.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.Model.Sync
  3. {
  4. public class SyncJobRequest
  5. {
  6. /// <summary>
  7. /// Gets or sets the target identifier.
  8. /// </summary>
  9. /// <value>The target identifier.</value>
  10. public string TargetId { get; set; }
  11. /// <summary>
  12. /// Gets or sets the item ids.
  13. /// </summary>
  14. /// <value>The item ids.</value>
  15. public List<string> ItemIds { get; set; }
  16. /// <summary>
  17. /// Gets or sets the category.
  18. /// </summary>
  19. /// <value>The category.</value>
  20. public SyncCategory? Category { get; set; }
  21. /// <summary>
  22. /// Gets or sets the parent identifier.
  23. /// </summary>
  24. /// <value>The parent identifier.</value>
  25. public string ParentId { get; set; }
  26. /// <summary>
  27. /// Gets or sets the quality.
  28. /// </summary>
  29. /// <value>The quality.</value>
  30. public SyncQuality Quality { get; set; }
  31. /// <summary>
  32. /// Gets or sets the name.
  33. /// </summary>
  34. /// <value>The name.</value>
  35. public string Name { get; set; }
  36. /// <summary>
  37. /// Gets or sets the user identifier.
  38. /// </summary>
  39. /// <value>The user identifier.</value>
  40. public string UserId { get; set; }
  41. /// <summary>
  42. /// Gets or sets a value indicating whether [unwatched only].
  43. /// </summary>
  44. /// <value><c>true</c> if [unwatched only]; otherwise, <c>false</c>.</value>
  45. public bool UnwatchedOnly { get; set; }
  46. /// <summary>
  47. /// Gets or sets a value indicating whether [synchronize new content].
  48. /// </summary>
  49. /// <value><c>true</c> if [synchronize new content]; otherwise, <c>false</c>.</value>
  50. public bool SyncNewContent { get; set; }
  51. /// <summary>
  52. /// Gets or sets the limit.
  53. /// </summary>
  54. /// <value>The limit.</value>
  55. public int? ItemLimit { get; set; }
  56. public SyncJobRequest()
  57. {
  58. ItemIds = new List<string>();
  59. SyncNewContent = true;
  60. }
  61. }
  62. }