use of org.knowm.xchange.bitbay.service.account.params.BitbayWithdrawFundsSwiftParams in project XChange by knowm.
the class BitbayAccountService method withdrawFunds.
@Override
public String withdrawFunds(WithdrawFundsParams params) throws IOException {
if (params instanceof DefaultWithdrawFundsParams) {
DefaultWithdrawFundsParams defaultParams = (DefaultWithdrawFundsParams) params;
transfer(defaultParams.getCurrency(), defaultParams.getAmount(), defaultParams.getAddress());
return "Success";
} else if (params instanceof BitbayWithdrawFundsSwiftParams) {
BitbayWithdrawFundsSwiftParams bicParams = (BitbayWithdrawFundsSwiftParams) params;
withdraw(bicParams.getCurrency(), bicParams.getAmount(), bicParams.getAccount(), bicParams.isExpress(), bicParams.getBic());
return "Success";
}
throw new NotAvailableFromExchangeException();
}
Aggregations