use of run.wallet.iota.api.requests.WebGetExchangeRatesRequest in project run-wallet-android by runplay.
the class AppService method updateExchangeRates.
public static void updateExchangeRates(Context context) {
long now = System.currentTimeMillis();
if (lastExchangeRateCall == 0 || now > lastExchangeRateCall + timeoutExchangeRates) {
lastExchangeRateCall = now;
TaskManager rt = new TaskManager(SERVICE);
WebGetExchangeRatesRequest nir = new WebGetExchangeRatesRequest();
runBasicTask(rt, nir);
}
}
Aggregations