use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method checkUsedAddress.
public static void checkUsedAddress(Seeds.Seed seed) {
if (Validator.isValidCaller() && Store.getCurrentSeed() != null) {
TaskManager rt = new TaskManager(SERVICE);
RefreshUsedAddressesRequest tir = new RefreshUsedAddressesRequest(seed);
runTask(rt, tir);
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method getNodeInfo.
public static void getNodeInfo(Context context) {
if (SERVICE != null) {
if (SERVICE.lastNodeInfo < System.currentTimeMillis() - 3000) {
SERVICE.lastNodeInfo = System.currentTimeMillis();
TaskManager rt = new TaskManager(SERVICE);
NodeInfoRequest nir = new NodeInfoRequest();
runTask(rt, nir);
}
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method generateNewAddress.
public static void generateNewAddress(Context context, Seeds.Seed seed) {
if (Validator.isValidCaller() && seed != null) {
TaskManager rt = new TaskManager(SERVICE);
GetNewAddressRequest gtr = new GetNewAddressRequest(seed);
runTask(rt, gtr);
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method auditAddresses.
public static void auditAddresses(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 getNodeInfo.
public static void getNodeInfo(Context context, boolean force) {
if (SERVICE != null) {
if (force || (SERVICE.lastNodeInfo < System.currentTimeMillis() - 3000)) {
SERVICE.lastNodeInfo = System.currentTimeMillis();
TaskManager rt = new TaskManager(SERVICE);
NodeInfoRequest nir = new NodeInfoRequest();
runTask(rt, nir);
}
}
}
Aggregations