add fixed start time behavior option to schedules and schedule items (#2017)

This commit is contained in:
Jason Dove
2025-05-30 09:30:09 +00:00
committed by GitHub
parent c8f5b51d93
commit d9a3496bf5
39 changed files with 23465 additions and 31 deletions
@@ -6,6 +6,7 @@ using ErsatzTV.Application.MediaCollections;
using ErsatzTV.Application.MediaItems;
using ErsatzTV.Application.Watermarks;
using ErsatzTV.Core.Domain;
using ErsatzTV.Core.Scheduling;
namespace ErsatzTV.ViewModels;
@@ -18,6 +19,7 @@ public class ProgramScheduleItemEditViewModel : INotifyPropertyChanged
private int _playoutDurationHours;
private int _playoutDurationMinutes;
private TimeSpan? _startTime;
private FixedStartTimeBehavior? _fixedStartTimeBehavior;
public int Id { get; set; }
public int Index { get; set; }
@@ -29,6 +31,12 @@ public class ProgramScheduleItemEditViewModel : INotifyPropertyChanged
set => _startTime = value;
}
public FixedStartTimeBehavior? FixedStartTimeBehavior
{
get => StartType == StartType.Fixed ? _fixedStartTimeBehavior : null;
set => _fixedStartTimeBehavior = value;
}
public FillWithGroupMode FillWithGroupMode { get; set; }
public bool CanFillWithGroups =>