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.
16 lines
658 B
16 lines
658 B
using ErsatzTV.Core; |
|
using ErsatzTV.Core.Domain; |
|
|
|
namespace ErsatzTV.Application.Playouts; |
|
|
|
public record CreatePlayout(int ChannelId, ProgramSchedulePlayoutType ProgramSchedulePlayoutType) |
|
: IRequest<Either<BaseError, CreatePlayoutResponse>>; |
|
|
|
public record CreateFloodPlayout(int ChannelId, int ProgramScheduleId) |
|
: CreatePlayout(ChannelId, ProgramSchedulePlayoutType.Flood); |
|
|
|
public record CreateBlockPlayout(int ChannelId) |
|
: CreatePlayout(ChannelId, ProgramSchedulePlayoutType.Block); |
|
|
|
public record CreateExternalJsonPlayout(int ChannelId, string ExternalJsonFile) |
|
: CreatePlayout(ChannelId, ProgramSchedulePlayoutType.ExternalJson);
|
|
|