private static TransferQRFileCommand BuildTransferFileCommand(JObject jObj) { var result = new TransferQRFileCommand(); var values = jObj.ToObject <Dictionary <string, object> >(); string file; if (values.TryGet("file", out file)) { result.File = file; } return(result); }
public Task <string> Transfer(TransferQRFileCommand command, CancellationToken token) { return(_mediator.Send(command, token)); }