示例#1
0
 /**
  * Load price data from cache. Don't update missing prices
  *
  * @return
  */
 public boolean load() {
   Map<Integer, PriceData> priceData = processLoad(profileData.getPriceTypeIDs());
   if (priceData != null) {
     Settings.get().setPriceData(priceData);
     return true;
   } else {
     return false;
   }
 }
示例#2
0
 /**
  * Update settings with new price data
  *
  * @param task UpdateTask to update progress on
  * @param updateAll if true update all prices, if false only update new/missing prices
  * @return true if OK or false if FAILED
  */
 private boolean processUpdate(final UpdateTask task, final boolean updateAll) {
   Map<Integer, PriceData> priceData =
       processUpdate(
           task,
           updateAll,
           new DefaultPricingOptions(),
           profileData.getPriceTypeIDs(),
           Settings.get().getPriceDataSettings().getSource());
   if (priceData != null) {
     Settings.get().setPriceData(priceData);
     return true;
   } else {
     return false;
   }
 }