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

info.bitrich.xchangestream.bitfinex.dto.BitfinexWebSocketAuthBalance Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
package info.bitrich.xchangestream.bitfinex.dto;

import java.math.BigDecimal;
import java.util.Objects;

public class BitfinexWebSocketAuthBalance {
  private String walletType;
  private String currency;
  private BigDecimal balance;
  private BigDecimal unsettledInterest;
  private BigDecimal balanceAvailable;

  public BitfinexWebSocketAuthBalance(
      String walletType,
      String currency,
      BigDecimal balance,
      BigDecimal unsettledInterest,
      BigDecimal balanceAvailable) {
    this.walletType = walletType;
    this.currency = currency;
    this.balance = balance;
    this.unsettledInterest = unsettledInterest;
    this.balanceAvailable = balanceAvailable;
  }

  public String getWalletType() {
    return walletType;
  }

  public String getCurrency() {
    return currency;
  }

  public BigDecimal getBalance() {
    return balance;
  }

  public BigDecimal getUnsettledInterest() {
    return unsettledInterest;
  }

  public BigDecimal getBalanceAvailable() {
    return balanceAvailable;
  }

  @Override
  public String toString() {
    return "BitfinexWebSocketAuthBalance{"
        + "walletType='"
        + walletType
        + '\''
        + ", currency='"
        + currency
        + '\''
        + ", balance="
        + balance
        + ", unsettledInterest="
        + unsettledInterest
        + ", balanceAvailable="
        + balanceAvailable
        + '}';
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof BitfinexWebSocketAuthBalance)) return false;
    BitfinexWebSocketAuthBalance that = (BitfinexWebSocketAuthBalance) o;
    return Objects.equals(walletType, that.walletType)
        && Objects.equals(currency, that.currency)
        && Objects.equals(balance, that.balance)
        && Objects.equals(unsettledInterest, that.unsettledInterest)
        && Objects.equals(balanceAvailable, that.balanceAvailable);
  }

  @Override
  public int hashCode() {

    return Objects.hash(walletType, currency, balance, unsettledInterest, balanceAvailable);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy