* add blocks, block groups * basic block and block item editing * add template groups and basic template editing (name) * add blocks to template calendar * edit playout templates * add calendar preview to playout templates * add basic block playout building * add mysql migration * update changelog
17 lines
658 B
C#
17 lines
658 B
C#
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);
|