@Override
@Logging(logArguments = false)
@Caching(expiration = Caching.TEN_MINUTES, logArguments = false)
public List<AccountBalanceDto> getAccountBalances(String apiKeyString, Long apiKeyUserID, Long characterID) throws EveApiException {
try {
ApiAccountBalanceResponse apiResponse = facade.getAccountBalance(apiKeyString, apiKeyUserID, characterID);
List<ApiAccountBalanceRow> apiAccountBalanceRows = apiResponse.getResult().getRowset().getRows();
List<AccountBalanceDto> accountBalanceDtos = new ArrayList<AccountBalanceDto>();
for (ApiAccountBalanceRow apiAccountBalanceRow : apiAccountBalanceRows) {
accountBalanceDtos.add(mapper.map(apiAccountBalanceRow, AccountBalanceDto.class));
}
return accountBalanceDtos;