use of org.geometerplus.fbreader.network.urlInfo.BookBuyUrlInfo in project FBReaderJ by geometer.
the class BuyBooksActivity method calculateCost.
private Money calculateCost() {
Money cost = Money.ZERO;
for (NetworkBookItem b : myBooks) {
if (b.getStatus(myBookCollection) != NetworkBookItem.Status.CanBePurchased) {
continue;
}
final BookBuyUrlInfo info = b.buyInfo();
if (info == null || info.Price == null) {
return null;
}
cost = cost.add(info.Price);
}
return cost;
}
Aggregations