2013-04-18 12:57:28 -07:00
|
|
|
|
using System;
|
2013-02-20 18:33:05 -07:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Tasks
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class TaskTriggerInfo
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class TaskTriggerInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The type.</value>
|
|
|
|
|
public string Type { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the time of day.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The time of day.</value>
|
|
|
|
|
public long? TimeOfDayTicks { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the interval.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The interval.</value>
|
|
|
|
|
public long? IntervalTicks { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the system event.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The system event.</value>
|
|
|
|
|
public SystemEvent? SystemEvent { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the day of week.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The day of week.</value>
|
|
|
|
|
public DayOfWeek? DayOfWeek { get; set; }
|
2015-03-05 11:54:04 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the maximum runtime ms.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The maximum runtime ms.</value>
|
|
|
|
|
public int? MaxRuntimeMs { get; set; }
|
2016-10-23 12:14:57 -07:00
|
|
|
|
|
|
|
|
|
public const string TriggerDaily = "DailyTrigger";
|
|
|
|
|
public const string TriggerWeekly = "WeeklyTrigger";
|
|
|
|
|
public const string TriggerInterval = "IntervalTrigger";
|
|
|
|
|
public const string TriggerSystemEvent = "SystemEventTrigger";
|
|
|
|
|
public const string TriggerStartup = "StartupTrigger";
|
2013-02-20 18:33:05 -07:00
|
|
|
|
}
|
|
|
|
|
}
|