1
0
mirror of synced 2024-12-19 09:45:54 +01:00
GC-local-server-rewrite/Application/Game/Card/Read/ReadGetMessageQuery.cs

21 lines
659 B
C#
Raw Normal View History

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