24 lines
647 B
C#
24 lines
647 B
C#
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)
|
|
{
|
|
public UpdateProgramSchedule ToCommand(int id) =>
|
|
new(
|
|
id,
|
|
Name,
|
|
KeepMultiPartEpisodesTogether,
|
|
TreatCollectionsAsShows,
|
|
ShuffleScheduleItems,
|
|
RandomStartPoint,
|
|
FixedStartTimeBehavior);
|
|
}
|