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

org.knowm.xchange.poloniex.dto.account.WithdrawalResponse Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import si.mazi.rescu.ExceptionalReturnContentException;

public class WithdrawalResponse {
  private String response;

  public WithdrawalResponse(
      @JsonProperty("response") String response, @JsonProperty("error") String error) {
    if (error != null) {
      throw new ExceptionalReturnContentException("Error returned: " + error);
    }
    this.response = response;
  }

  public String getResponse() {
    return response;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy