aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Tasks/TaskInfo.cs
diff options
context:
space:
mode:
authorAndrew Rabert <ar@nullsum.net>2018-12-27 18:27:57 -0500
committerAndrew Rabert <ar@nullsum.net>2018-12-27 18:27:57 -0500
commita86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 (patch)
treea74f6ea4a8abfa1664a605d31d48bc38245ccf58 /MediaBrowser.Model/Tasks/TaskInfo.cs
parent9bac3ac616b01f67db98381feb09d34ebe821f9a (diff)
Add GPL modules
Diffstat (limited to 'MediaBrowser.Model/Tasks/TaskInfo.cs')
-rw-r--r--MediaBrowser.Model/Tasks/TaskInfo.cs78
1 files changed, 78 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Tasks/TaskInfo.cs b/MediaBrowser.Model/Tasks/TaskInfo.cs
new file mode 100644
index 000000000..8792ce952
--- /dev/null
+++ b/MediaBrowser.Model/Tasks/TaskInfo.cs
@@ -0,0 +1,78 @@
+using System.Collections.Generic;
+
+namespace MediaBrowser.Model.Tasks
+{
+ /// <summary>
+ /// Class TaskInfo
+ /// </summary>
+ public class TaskInfo
+ {
+ /// <summary>
+ /// Gets or sets the name.
+ /// </summary>
+ /// <value>The name.</value>
+ public string Name { get; set; }
+
+ /// <summary>
+ /// Gets or sets the state of the task.
+ /// </summary>
+ /// <value>The state of the task.</value>
+ public TaskState State { get; set; }
+
+ /// <summary>
+ /// Gets or sets the progress.
+ /// </summary>
+ /// <value>The progress.</value>
+ public double? CurrentProgressPercentage { get; set; }
+
+ /// <summary>
+ /// Gets or sets the id.
+ /// </summary>
+ /// <value>The id.</value>
+ public string Id { get; set; }
+
+ /// <summary>
+ /// Gets or sets the last execution result.
+ /// </summary>
+ /// <value>The last execution result.</value>
+ public TaskResult LastExecutionResult { get; set; }
+
+ /// <summary>
+ /// Gets or sets the triggers.
+ /// </summary>
+ /// <value>The triggers.</value>
+ public TaskTriggerInfo[] Triggers { get; set; }
+
+ /// <summary>
+ /// Gets or sets the description.
+ /// </summary>
+ /// <value>The description.</value>
+ public string Description { get; set; }
+
+ /// <summary>
+ /// Gets or sets the category.
+ /// </summary>
+ /// <value>The category.</value>
+ public string Category { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether this instance is hidden.
+ /// </summary>
+ /// <value><c>true</c> if this instance is hidden; otherwise, <c>false</c>.</value>
+ public bool IsHidden { get; set; }
+
+ /// <summary>
+ /// Gets or sets the key.
+ /// </summary>
+ /// <value>The key.</value>
+ public string Key { get; set; }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TaskInfo"/> class.
+ /// </summary>
+ public TaskInfo()
+ {
+ Triggers = new TaskTriggerInfo[]{};
+ }
+ }
+}