TaskInfo.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #nullable disable
  2. using System;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Model.Tasks
  5. {
  6. /// <summary>
  7. /// Class TaskInfo.
  8. /// </summary>
  9. public class TaskInfo
  10. {
  11. /// <summary>
  12. /// Initializes a new instance of the <see cref="TaskInfo"/> class.
  13. /// </summary>
  14. public TaskInfo()
  15. {
  16. Triggers = [];
  17. }
  18. /// <summary>
  19. /// Gets or sets the name.
  20. /// </summary>
  21. /// <value>The name.</value>
  22. public string Name { get; set; }
  23. /// <summary>
  24. /// Gets or sets the state of the task.
  25. /// </summary>
  26. /// <value>The state of the task.</value>
  27. public TaskState State { get; set; }
  28. /// <summary>
  29. /// Gets or sets the progress.
  30. /// </summary>
  31. /// <value>The progress.</value>
  32. public double? CurrentProgressPercentage { get; set; }
  33. /// <summary>
  34. /// Gets or sets the id.
  35. /// </summary>
  36. /// <value>The id.</value>
  37. public string Id { get; set; }
  38. /// <summary>
  39. /// Gets or sets the last execution result.
  40. /// </summary>
  41. /// <value>The last execution result.</value>
  42. public TaskResult LastExecutionResult { get; set; }
  43. /// <summary>
  44. /// Gets or sets the triggers.
  45. /// </summary>
  46. /// <value>The triggers.</value>
  47. public IReadOnlyList<TaskTriggerInfo> Triggers { get; set; }
  48. /// <summary>
  49. /// Gets or sets the description.
  50. /// </summary>
  51. /// <value>The description.</value>
  52. public string Description { get; set; }
  53. /// <summary>
  54. /// Gets or sets the category.
  55. /// </summary>
  56. /// <value>The category.</value>
  57. public string Category { get; set; }
  58. /// <summary>
  59. /// Gets or sets a value indicating whether this instance is hidden.
  60. /// </summary>
  61. /// <value><c>true</c> if this instance is hidden; otherwise, <c>false</c>.</value>
  62. public bool IsHidden { get; set; }
  63. /// <summary>
  64. /// Gets or sets the key.
  65. /// </summary>
  66. /// <value>The key.</value>
  67. public string Key { get; set; }
  68. }
  69. }