All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.knowm.xchange.okcoin.dto.account.OKCoinWithdraw Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
package org.knowm.xchange.okcoin.dto.account;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.knowm.xchange.okcoin.dto.trade.OkCoinErrorResult;

/**
 * Withdraw result info
 *
 * @author Ondřej Novotný
 */
public class OKCoinWithdraw extends OkCoinErrorResult {
  private final String withdrawId;

  /*
   * withdraw_id: withdrawal request ID result: true means request successful
   */
  public OKCoinWithdraw(
      @JsonProperty("result") final boolean result,
      @JsonProperty("error_code") final int errorCode,
      @JsonProperty("withdraw_id") final String withdrawId) {
    super(result, errorCode);
    this.withdrawId = withdrawId;
  }

  public String getWithdrawId() {
    return withdrawId;
  }

  @Override
  public String toString() {
    return "Withdraw [refid=" + withdrawId + "]";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy