* refactor classic and block schedules to use same alternate schedule selector * handle start year and end year * add migrations for classic and block schedules * allow editing block template start and end year * add tests that include years * add date range editing to classic (alternate) schedules * fix running tests locally * restore media files load; needed for local folder scanners * update changelog * feedback
24 lines
836 B
C#
24 lines
836 B
C#
using ErsatzTV.Core.Domain.Scheduling;
|
|
|
|
namespace ErsatzTV.Core.Domain;
|
|
|
|
public class ProgramScheduleAlternate : IAlternateScheduleItem
|
|
{
|
|
public int Id { get; set; }
|
|
public int PlayoutId { get; set; }
|
|
public Playout Playout { get; set; }
|
|
public int ProgramScheduleId { get; set; }
|
|
public ProgramSchedule ProgramSchedule { 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 bool LimitToDateRange { get; set; }
|
|
public int StartMonth { get; set; }
|
|
public int StartDay { get; set; }
|
|
public int? StartYear { get; set; }
|
|
public int EndMonth { get; set; }
|
|
public int EndDay { get; set; }
|
|
public int? EndYear { get; set; }
|
|
}
|