namespace Application.Game.Card.OnlineMatching; public record UploadOnlineMatchingResultCommand(long CardId, string Data) : IRequestWrapper; public class UploadOnlineMatchingResultCommandHandler : RequestHandlerBase { private const string XPATH = "/root/online_battle_result"; public UploadOnlineMatchingResultCommandHandler(ICardDependencyAggregate aggregate) : base(aggregate) { } public override Task> Handle(UploadOnlineMatchingResultCommand request, CancellationToken cancellationToken) { var result = new OnlineMatchingResult { Status = 1 }.SerializeCardData(XPATH); return Task.FromResult(new ServiceResult(result)); } } public class OnlineMatchingResult { [XmlElement(ElementName = "status")] public int Status { get; set; } }