private static void CancelWithdrawCurrency() { var walletClient = new WalletClient(Config.AccessKey, Config.SecretKey); _logger.Start(); var result = walletClient.CancelWithdrawCurrencyAsync(1).Result; _logger.StopAndLog(); if (result != null) { switch (result.status) { case "ok": { AppLogger.Info($"Cancel withdraw successfully, transfer id: {result.data}"); break; } case "error": { AppLogger.Info($"Cancel withdraw fail, error code: {result.errorCode}, error message: {result.errorMessage}"); break; } } } }
public void CancelWithdrawCurrencyTest(long withdrawId) { CancelWithdrawCurrencyResponse result = client.CancelWithdrawCurrencyAsync(withdrawId).Result; string strret = JsonConvert.SerializeObject(result, Formatting.Indented); Console.WriteLine(strret); Assert.Equal("ok", result.status); }