mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
871 B
28 lines
871 B
using YamlDotNet.Serialization; |
|
|
|
namespace ErsatzTV.Core.Scheduling.YamlScheduling.Models; |
|
|
|
public class YamlPlayoutSchedule |
|
{ |
|
public string Name { get; set; } |
|
|
|
[YamlMember(Alias = "start_date", ApplyNamingConventions = false)] |
|
public string StartDate { get; set; } |
|
|
|
[YamlMember(Alias = "end_date", ApplyNamingConventions = false)] |
|
public string EndDate { get; set; } |
|
|
|
/// <summary> |
|
/// Specific year(s) this schedule applies to. If empty, applies to all years. |
|
/// </summary> |
|
public List<int> Years { get; set; } = []; |
|
|
|
/// <summary> |
|
/// Whether this schedule repeats annually (default: true when no years are specified) |
|
/// </summary> |
|
public bool Recurring { get; set; } = true; |
|
|
|
public List<YamlPlayoutInstruction> Reset { get; set; } = []; |
|
|
|
public List<YamlPlayoutInstruction> Playout { get; set; } = []; |
|
}
|
|
|