using System;
namespace Oqtane.Models
{
///
/// An instance of a Task which is executed by the TaskJob
///
public class JobTask : ModelBase
{
///
/// Internal ID
///
public int JobTaskId { get; set; }
///
/// Site where the Task should execute
///
public int SiteId { get; set; }
///
/// Name for simple identification
///
public string Name { get; set; }
///
/// Fully qualified type name of the Task
///
public string Type { get; set; }
///
/// Any parameters related to the Task
///
public string Parameters { get; set; }
///
/// Indicates if the Task is completed
///
public bool IsCompleted { get; set; }
///
/// Any status information provided by the Task
///
public string Status { get; set; }
// constructors
public JobTask() { }
public JobTask(int siteId, string name, string type, string parameters)
{
SiteId = siteId;
Name = name;
Type = type;
Parameters = parameters;
}
}
}