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

org.knowm.xchange.poloniex.dto.trade.PoloniexDepositsWithdrawalsResponse Maven / Gradle / Ivy

package org.knowm.xchange.poloniex.dto.trade;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import org.knowm.xchange.exceptions.ExchangeException;

public class PoloniexDepositsWithdrawalsResponse {

  private final List deposits;
  private final List withdrawals;

  @JsonCreator
  public PoloniexDepositsWithdrawalsResponse(
      @JsonProperty("error") String error,
      @JsonProperty("deposits") List deposits,
      @JsonProperty("withdrawals") List withdrawals) {
    if (error != null) {
      throw new ExchangeException(error);
    }
    this.deposits = deposits;
    this.withdrawals = withdrawals;
  }

  public List getDeposits() {
    return deposits;
  }

  public List getWithdrawals() {
    return withdrawals;
  }

  @Override
  public String toString() {
    return "DepositsWithdrawalsResponse [deposits="
        + deposits
        + ", withdrawals="
        + withdrawals
        + "]";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy