1
0
mirror of synced 2024-12-01 01:07:18 +01:00
GC-local-server-rewrite/Application/Game/Card/Read/ReadCondQuery.cs
2023-02-17 00:38:01 +08:00

21 lines
607 B
C#

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