Search in sources :

Example 1 with WebGetExchangeRatesRequest

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);
    }
}
Also used : TaskManager(run.wallet.iota.api.TaskManager) WebGetExchangeRatesRequest(run.wallet.iota.api.requests.WebGetExchangeRatesRequest)

Aggregations

TaskManager (run.wallet.iota.api.TaskManager)1 WebGetExchangeRatesRequest (run.wallet.iota.api.requests.WebGetExchangeRatesRequest)1