using ErsatzTV.Application.ProgramSchedules; using ErsatzTV.Core.Scheduling; namespace ErsatzTV.Controllers.Api.Requests; public record CreateScheduleRequest( string Name, bool KeepMultiPartEpisodesTogether, bool TreatCollectionsAsShows, bool ShuffleScheduleItems, bool RandomStartPoint, FixedStartTimeBehavior FixedStartTimeBehavior) { public CreateProgramSchedule ToCreateCommand() => new( Name, KeepMultiPartEpisodesTogether, TreatCollectionsAsShows, ShuffleScheduleItems, RandomStartPoint, FixedStartTimeBehavior); }