* add blocks, block groups * basic block and block item editing * add template groups and basic template editing (name) * add blocks to template calendar * edit playout templates * add calendar preview to playout templates * add basic block playout building * add mysql migration * update changelog
33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
namespace ErsatzTV.Core.Domain.Scheduling;
|
|
|
|
public class PlayoutTemplate
|
|
{
|
|
public int Id { get; set; }
|
|
public int PlayoutId { get; set; }
|
|
public Playout Playout { get; set; }
|
|
public int TemplateId { get; set; }
|
|
public Template Template { get; set; }
|
|
public int Index { get; set; }
|
|
public ICollection<DayOfWeek> DaysOfWeek { get; set; }
|
|
public ICollection<int> DaysOfMonth { get; set; }
|
|
public ICollection<int> MonthsOfYear { get; set; }
|
|
public DateTimeOffset StartDate { get; set; }
|
|
public DateTimeOffset EndDate { get; set; }
|
|
|
|
// TODO: ICollection<DateTimeOffset> AdditionalDays { get; set; }
|
|
|
|
public static List<DayOfWeek> AllDaysOfWeek() =>
|
|
[
|
|
DayOfWeek.Monday,
|
|
DayOfWeek.Tuesday,
|
|
DayOfWeek.Wednesday,
|
|
DayOfWeek.Thursday,
|
|
DayOfWeek.Friday,
|
|
DayOfWeek.Saturday,
|
|
DayOfWeek.Sunday
|
|
];
|
|
|
|
public static List<int> AllDaysOfMonth() => Enumerable.Range(1, 31).ToList();
|
|
public static List<int> AllMonthsOfYear() => Enumerable.Range(1, 12).ToList();
|
|
}
|