namespace Oqtane.Models
{
///
/// An instance of a SiteTask which is executed by the SiteTaskJob
///
public class SiteTask : ModelBase
{
///
/// Internal ID
///
public int SiteTaskId { 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 SiteTask() { }
public SiteTask(int siteId, string name, string type, string parameters)
{
SiteId = siteId;
Name = name;
Type = type;
Parameters = parameters;
}
}
}