using System; namespace Oqtane.Models { /// /// Definition of a Job / Task which is run on the server. /// When Jobs run, they create a /// public class Job : ModelBase { /// /// Internal ID /// public int JobId { get; set; } /// /// Name for simple identification /// public string Name { get; set; } /// /// What kind of Job this is /// public string JobType { get; set; } /// /// Unit used in how often the job should run - expects a character like `m` (minutes), `H` (hours) etc. /// public string Frequency { get; set; } /// /// How often the Job should run - see also /// public int Interval { get; set; } /// /// When the Job is to be run the first time. See also . /// public DateTime? StartDate { get; set; } /// /// When the job is to be run the last time. See also . /// public DateTime? EndDate { get; set; } /// /// Determines if the Job is activated / enabled. /// public bool IsEnabled { get; set; } /// /// If the Job has ever started running /// public bool IsStarted { get; set; } /// /// If the Job is executing right now. /// public bool IsExecuting { get; set; } /// /// When the Job will run again next time. /// public DateTime? NextExecution { get; set; } /// /// Todo: todoc - unsure what this does /// public int RetentionHistory { get; set; } } }