using Application.Common.Extensions; using Application.Common.Models; using Application.Interfaces; using Domain.Enums; using Microsoft.EntityFrameworkCore; namespace Application.Game.Card.Read; public record ReadGetMessageQuery(long CardId) : IRequestWrapper; public class ReadGetMessageQueryHandler : CardRequestHandlerBase { private const string GET_MESSAGE_XPATH = "/root/get_message"; public ReadGetMessageQueryHandler(ICardDependencyAggregate aggregate) : base(aggregate) { } public override Task> Handle(ReadGetMessageQuery request, CancellationToken cancellationToken) { var result = new object().SerializeCardData(GET_MESSAGE_XPATH); return Task.FromResult(new ServiceResult(result)); } }