package org.knowm.xchange.cryptofacilities.service; import java.io.IOException; import java.math.BigDecimal; import org.knowm.xchange.Exchange; import org.knowm.xchange.cryptofacilities.CryptoFacilitiesAdapters; import org.knowm.xchange.currency.Currency; import org.knowm.xchange.dto.account.AccountInfo; import org.knowm.xchange.exceptions.NotAvailableFromExchangeException; import org.knowm.xchange.service.account.AccountService; /** * @author Jean-Christophe Laruelle */ public class CryptoFacilitiesAccountService extends CryptoFacilitiesAccountServiceRaw implements AccountService { /** * Constructor * * @param exchange */ public CryptoFacilitiesAccountService(Exchange exchange) { super(exchange); } @Override public AccountInfo getAccountInfo() throws IOException { return CryptoFacilitiesAdapters.adaptAccount(getCryptoFacilitiesAccount(), exchange.getExchangeSpecification().getUserName()); } @Override public String withdrawFunds(Currency currency, BigDecimal amount, String address) throws IOException { throw new NotAvailableFromExchangeException(); } @Override public String requestDepositAddress(Currency currency, String... args) throws IOException { throw new NotAvailableFromExchangeException(); } }