1
0
mirror of synced 2024-12-21 02:35:53 +01:00
GC-local-server-rewrite/Application/Game/Card/Read/ReadCondQuery.cs

21 lines
607 B
C#
Raw Normal View History

namespace Application.Game.Card.Read;
public record ReadCondQuery(long CardId) : IRequestWrapper<string>;
2023-02-16 17:38:01 +01:00
public class ReadCondQueryHandler : RequestHandlerBase<ReadCondQuery, string>
{
2023-02-13 17:38:19 +01:00
private const string COND_XPATH = "/root/cond";
public ReadCondQueryHandler(ICardDependencyAggregate aggregate) : base(aggregate)
{
}
public override Task<ServiceResult<string>> Handle(ReadCondQuery request, CancellationToken cancellationToken)
{
2023-02-13 17:38:19 +01:00
var result = new object().SerializeCardData(COND_XPATH);
return Task.FromResult(new ServiceResult<string>(result));
}
}