2023-02-10 18:24:24 +01:00
|
|
|
namespace Application.Game.Card.Write;
|
|
|
|
|
|
|
|
public record WriteItemCommand(long CardId, string Data) : IRequestWrapper<string>;
|
|
|
|
|
2023-02-16 17:38:01 +01:00
|
|
|
public class WriteItemCommandHandler : RequestHandlerBase<WriteItemCommand, string>
|
2023-02-10 18:24:24 +01:00
|
|
|
{
|
|
|
|
public WriteItemCommandHandler(ICardDependencyAggregate aggregate) : base(aggregate) {}
|
|
|
|
|
|
|
|
public override Task<ServiceResult<string>> Handle(WriteItemCommand request, CancellationToken cancellationToken)
|
|
|
|
{
|
|
|
|
// TODO: Add proper implementation
|
|
|
|
return Task.FromResult(new ServiceResult<string>(request.Data));
|
|
|
|
}
|
|
|
|
}
|