1
0
mirror of synced 2024-12-19 17:55:53 +01:00
GC-local-server-rewrite/Application/Game/Card/Read/ReadEventRewardQuery.cs

21 lines
666 B
C#
Raw Normal View History

namespace Application.Game.Card.Read;
public record ReadEventRewardQuery(long CardId) : IRequestWrapper<string>;
2023-02-16 17:38:01 +01:00
public class ReadEventRewardQueryHandler : RequestHandlerBase<ReadEventRewardQuery, string>
{
2023-02-13 17:38:19 +01:00
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)
{
2023-02-13 17:38:19 +01:00
var result = new object().SerializeCardData(EVENT_REWARD_XPATH);
return Task.FromResult(new ServiceResult<string>(result));
}
}