using ErsatzTV.Application.ProgramSchedules; using ErsatzTV.Core.Scheduling; namespace ErsatzTV.Controllers.Api.Requests; public record UpdateScheduleRequest( string Name, bool KeepMultiPartEpisodesTogether, bool TreatCollectionsAsShows, bool ShuffleScheduleItems, bool RandomStartPoint, FixedStartTimeBehavior FixedStartTimeBehavior, int? PadToNearestMinute) { public UpdateProgramSchedule ToCommand(int id) => new( id, Name, KeepMultiPartEpisodesTogether, TreatCollectionsAsShows, ShuffleScheduleItems, RandomStartPoint, FixedStartTimeBehavior, PadToNearestMinute); }