class BPIServiceClient {

    public Observable<BPI> getCurrentUSDPrice() {
        return bpiService.currentPrice().map(new Func1<PriceDto, BPI>() {
            @Override
            public BPI call(PriceDto priceDto) {
                return new BPI(priceDto.getTime().getUpdatedISO(), priceDto.getBpi().get("USD").getRate());
            }
        });
    }

    public  BPIServiceClient(BPIService bpiService);

}