1
0
mirror of synced 2024-11-28 08:00:49 +01:00
GC-local-server-rewrite/Application/Game/Card/Read/ReadEventRewardQuery.cs
2023-02-17 00:38:01 +08:00

21 lines
666 B
C#

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