@Override
@Logging
@Caching(expiration = Caching.TWO_HOURS)
public List<ItemPriceDto> getItemPrice(Long regionID, Long... typeIDs) throws EveMetricsApiException {
try {
ItemPriceResponse apiResponse = facade.getItemPriceInRegion(eveMetricsDeveloperKey, regionID, typeIDs);
List<ItemPriceDto> itemPriceDtos = new ArrayList<ItemPriceDto>();
for (ItemPriceType itemPriceType : apiResponse.getTypes()) {
itemPriceDtos.add(mapper.map(itemPriceType, ItemPriceDto.class));
}
return itemPriceDtos;
} catch (ApiParserException e) {
logger.error("Caught ApiParserException", e.getMessage());