org.knowm.xchange.bl3p.service.params.Bl3pWithdrawFundsParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-bl3p Show documentation
Show all versions of xchange-bl3p Show documentation
XChange implementation for the Bl3p Exchange
package org.knowm.xchange.bl3p.service.params;
import java.math.BigDecimal;
import org.knowm.xchange.bl3p.Bl3pUtils;
import org.knowm.xchange.service.trade.params.WithdrawFundsParams;
public abstract class Bl3pWithdrawFundsParams implements WithdrawFundsParams {
private String currency;
private long amount;
public Bl3pWithdrawFundsParams(String currency, long amount) {
this.currency = currency;
this.amount = amount;
}
public String getCurrency() {
return currency;
}
public long getAmount() {
return this.amount;
}
public static class Euros extends Bl3pWithdrawFundsParams {
private String accountId;
private String accountName;
public Euros(String accountId, String accountName, BigDecimal amount) {
super("EUR", Bl3pUtils.toEuroshi(amount));
this.accountId = accountId;
this.accountName = accountName;
}
public String getAccountId() {
return accountId;
}
public String getAccountName() {
return accountName;
}
}
public static class Coins extends Bl3pWithdrawFundsParams {
private String address;
private boolean extraFee;
public Coins(String currency, String address, BigDecimal amount) {
this(currency, address, amount, false);
}
public Coins(String currency, String address, BigDecimal amount, boolean extraFee) {
super(currency, Bl3pUtils.toSatoshi(amount));
this.address = address;
this.extraFee = extraFee;
}
public String getAddress() {
return address;
}
public boolean isExtraFee() {
return extraFee;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy