Files
ersatztv/ErsatzTV.Application/Playouts/Commands/CreatePlayout.cs
T
Jason DoveandGitHub 53f281ce32 add xmltv block behavior setting (#2336)
* replace playout externaljsonfile and templatefile with schedulefile

* add scripted schedule-based playout

* wip - not functional yet

* temp disable scripted playout creation

* allow fast-forwarding block playouts

* add xmltv block behavior setting
2025-08-23 20:16:12 +00:00

23 lines
890 B
C#

using ErsatzTV.Core;
using ErsatzTV.Core.Domain;
namespace ErsatzTV.Application.Playouts;
public record CreatePlayout(int ChannelId, PlayoutScheduleKind ScheduleKind)
: IRequest<Either<BaseError, CreatePlayoutResponse>>;
public record CreateClassicPlayout(int ChannelId, int ProgramScheduleId)
: CreatePlayout(ChannelId, PlayoutScheduleKind.Classic);
public record CreateBlockPlayout(int ChannelId)
: CreatePlayout(ChannelId, PlayoutScheduleKind.Block);
public record CreateSequentialPlayout(int ChannelId, string ScheduleFile)
: CreatePlayout(ChannelId, PlayoutScheduleKind.Sequential);
public record CreateScriptedPlayout(int ChannelId, string ScheduleFile)
: CreatePlayout(ChannelId, PlayoutScheduleKind.Scripted);
public record CreateExternalJsonPlayout(int ChannelId, string ScheduleFile)
: CreatePlayout(ChannelId, PlayoutScheduleKind.ExternalJson);