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

21 lines
670 B
C#

namespace Application.Game.Card.Read;
public record ReadEventRewardQuery(long CardId) : IRequestWrapper<string>;
public class ReadEventRewardQueryHandler : CardRequestHandlerBase<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));
}
}