mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
890 B
22 lines
890 B
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);
|
|
|