25 lines
692 B
C#
25 lines
692 B
C#
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,
|
|
int? PadToNearestMinute)
|
|
{
|
|
public CreateProgramSchedule ToCreateCommand() =>
|
|
new(
|
|
Name,
|
|
KeepMultiPartEpisodesTogether,
|
|
TreatCollectionsAsShows,
|
|
ShuffleScheduleItems,
|
|
RandomStartPoint,
|
|
FixedStartTimeBehavior,
|
|
PadToNearestMinute);
|
|
}
|