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

org.knowm.xchange.gateio.dto.account.GateioFunds Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import org.knowm.xchange.gateio.dto.GateioBaseResponse;

public class GateioFunds extends GateioBaseResponse {

  private final Map available;
  private final Map locked;

  /**
   * Constructor
   *
   * @param theAvailable
   * @param theLocked
   */
  public GateioFunds(
      @JsonProperty("available") Map theAvailable,
      @JsonProperty("locked") Map theLocked,
      @JsonProperty("result") boolean result,
      @JsonProperty("message") final String message) {

    super(result, message);

    available = theAvailable == null ? new HashMap() : theAvailable;
    locked = theLocked == null ? new HashMap() : theLocked;
  }

  public Map getAvailableFunds() {

    return available;
  }

  public Map getLockedFunds() {

    return locked;
  }

  @Override
  public String toString() {

    return "BTERAccountInfoReturn [availableFunds=" + available + ", lockedFunds=" + locked + "]";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy