2013-04-18 19:57:28 +00:00
|
|
|
|
using System;
|
2013-09-20 00:53:18 +00:00
|
|
|
|
using System.Collections.Generic;
|
2013-02-21 01:33:05 +00:00
|
|
|
|
|
|
|
|
|
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>
|
2013-02-22 04:23:06 +00:00
|
|
|
|
public double? CurrentProgressPercentage { get; set; }
|
2013-02-21 01:33:05 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the id.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The id.</value>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
public string Id { get; set; }
|
2013-02-21 01:33:05 +00:00
|
|
|
|
|
|
|
|
|
/// <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>
|
2013-09-20 00:53:18 +00:00
|
|
|
|
public List<TaskTriggerInfo> Triggers { get; set; }
|
2013-02-21 01:33:05 +00:00
|
|
|
|
|
|
|
|
|
/// <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; }
|
2013-04-21 01:17:59 +00:00
|
|
|
|
|
2013-11-29 16:58:24 +00:00
|
|
|
|
/// <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; }
|
|
|
|
|
|
2014-04-03 22:50:04 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the key.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The key.</value>
|
|
|
|
|
public string Key { get; set; }
|
|
|
|
|
|
2013-04-21 01:17:59 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="TaskInfo"/> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public TaskInfo()
|
|
|
|
|
{
|
2013-09-20 00:53:18 +00:00
|
|
|
|
Triggers = new List<TaskTriggerInfo>();
|
2013-04-21 01:17:59 +00:00
|
|
|
|
}
|
2013-02-21 01:33:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|