use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method replayBundleTransaction.
public static void replayBundleTransaction(Context context, Seeds.Seed seed, String hash, String refreshCallAddress) {
if (Validator.isValidCaller() && Store.getCurrentSeed() != null) {
ReplayBundleRequest rtr = new ReplayBundleRequest(seed, hash, refreshCallAddress);
TaskManager rt = new TaskManager(SERVICE);
runTask(rt, rtr);
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method auditAddressesWithDelay.
public static void auditAddressesWithDelay(Context context, Seeds.Seed seed) {
if (Validator.isValidCaller() && seed != null) {
if (AppService.countSeedRunningTasks(seed) == 0) {
TaskManager rt = new TaskManager(SERVICE);
AuditAddressesRequest gtr = new AuditAddressesRequest(seed);
runTask(rt, gtr);
}
}
}
use of run.wallet.iota.api.TaskManager 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);
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method getAccountDataSingleAddress.
public static void getAccountDataSingleAddress(Context context, Seeds.Seed seed, String address) {
if (Validator.isValidCaller() && Store.getCurrentSeed() != null) {
if (SERVICE != null && !isGetAccountDataRunning(Store.getCurrentSeed())) {
TaskManager rt = new TaskManager(SERVICE);
GetAccountDataRequest gna = new GetAccountDataRequest(seed);
gna.setSingleAddressRefresh(address);
runTask(rt, gna);
}
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method getFirstTimeLoad.
public static void getFirstTimeLoad(Context context) {
if (Validator.isValidCaller() && Store.getCurrentSeed() != null) {
TaskManager rt = new TaskManager(SERVICE);
GetFirstLoadRequest gna = new GetFirstLoadRequest(Store.getCurrentSeed());
runTask(rt, gna);
}
}
Aggregations