aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Tasks/TaskTriggerInfo.cs
blob: e7b54f3a715af7cf42424177f144eb55a71a9363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma warning disable CS1591
#pragma warning disable SA1600

using System;

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 day of week.
        /// </summary>
        /// <value>The day of week.</value>
        public DayOfWeek? DayOfWeek { get; set; }

        /// <summary>
        /// Gets or sets the maximum runtime ticks.
        /// </summary>
        /// <value>The maximum runtime ticks.</value>
        public long? MaxRuntimeTicks { get; set; }

        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";
    }
}