SyncJobRequest.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 quality.
  18. /// </summary>
  19. /// <value>The quality.</value>
  20. public SyncQuality Quality { get; set; }
  21. /// <summary>
  22. /// Gets or sets the name.
  23. /// </summary>
  24. /// <value>The name.</value>
  25. public string Name { get; set; }
  26. /// <summary>
  27. /// Gets or sets the user identifier.
  28. /// </summary>
  29. /// <value>The user identifier.</value>
  30. public string UserId { get; set; }
  31. /// <summary>
  32. /// Gets or sets a value indicating whether [unwatched only].
  33. /// </summary>
  34. /// <value><c>true</c> if [unwatched only]; otherwise, <c>false</c>.</value>
  35. public bool UnwatchedOnly { get; set; }
  36. /// <summary>
  37. /// Gets or sets a value indicating whether [remove when watched].
  38. /// </summary>
  39. /// <value><c>true</c> if [remove when watched]; otherwise, <c>false</c>.</value>
  40. public bool RemoveWhenWatched { get; set; }
  41. /// <summary>
  42. /// Gets or sets a value indicating whether [synchronize new content].
  43. /// </summary>
  44. /// <value><c>true</c> if [synchronize new content]; otherwise, <c>false</c>.</value>
  45. public bool SyncNewContent { get; set; }
  46. /// <summary>
  47. /// Gets or sets the limit.
  48. /// </summary>
  49. /// <value>The limit.</value>
  50. public int? ItemLimit { get; set; }
  51. public SyncJobRequest()
  52. {
  53. ItemIds = new List<string>();
  54. SyncNewContent = true;
  55. }
  56. }
  57. }