add fixed start time behavior option to schedules and schedule items (#2017)
This commit is contained in:
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user