22 lines
678 B
C#
22 lines
678 B
C#
using ErsatzTV.Application.Channels;
|
|
|
|
namespace ErsatzTV.Controllers.Api.Requests;
|
|
|
|
public record BulkRenumberChannelRequest(int Id, string Number);
|
|
|
|
public record BulkRenumberChannelsRequest(List<BulkRenumberChannelRequest> Channels)
|
|
{
|
|
public UpdateChannelNumbers ToCommand() =>
|
|
new(Channels.Select(c => new ChannelSortViewModel { Id = c.Id, Number = c.Number }).ToList());
|
|
}
|
|
|
|
public record BulkMoveChannelsToGroupRequest(List<int> ChannelIds, string Group)
|
|
{
|
|
public BulkMoveChannelsToGroup ToCommand() => new(ChannelIds, Group);
|
|
}
|
|
|
|
public record BulkDeleteChannelsRequest(List<int> ChannelIds)
|
|
{
|
|
public BulkDeleteChannels ToCommand() => new(ChannelIds);
|
|
}
|