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

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

There is a newer version: 5.2.0
Show newest version
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 adjustments;
  private final List deposits;
  private final List withdrawals;

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

    this.adjustments = adjustments;
    this.deposits = deposits;
    this.withdrawals = withdrawals;
  }

  public List getAdjustments() {
    return adjustments;
  }

  public List getDeposits() {
    return deposits;
  }

  public List getWithdrawals() {
    return withdrawals;
  }

  @Override
  public String toString() {
    return "PoloniexDepositsWithdrawalsResponse{"
        + "adjustments="
        + adjustments
        + ", deposits="
        + deposits
        + ", withdrawals="
        + withdrawals
        + '}';
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy