use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method AutoNudgerGo.
private static void AutoNudgerGo() {
long now = System.currentTimeMillis();
if (SERVICE != null && lastNudgeRun < now - nudgeEvery) {
Store.loadNudgeTransfers(SERVICE);
if (!Store.getNudgeTransfers().isEmpty() && !isAutoNudgerRunning()) {
lastNudgeRun = now;
TaskManager rt = new TaskManager(SERVICE);
AutoNudgeRequest nir = new AutoNudgeRequest();
runTask(rt, nir);
}
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method sendNewTransfer.
@Deprecated
public static void sendNewTransfer(Context context, Seeds.Seed seed, String toAddress, String amountIOTA, String message, String tag) {
if (Validator.isValidCaller() && Store.getCurrentSeed() != null) {
TaskManager rt = new TaskManager(SERVICE);
SendTransferRequest tir = new SendTransferRequest(seed, toAddress, amountIOTA, message, tag);
runTask(rt, tir);
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method updateExchangeRatesHistory.
public static void updateExchangeRatesHistory(Context context, String currencyPair, int step) {
TaskManager rt = new TaskManager(SERVICE);
WebGetExchangeRatesHistoryRequest nir = new WebGetExchangeRatesHistoryRequest(currencyPair, step);
runBasicTask(rt, nir);
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method attachNewAddress.
public static void attachNewAddress(Context context, Seeds.Seed seed, String address) {
if (Validator.isValidCaller() && Store.getCurrentSeed() != null) {
TaskManager rt = new TaskManager(SERVICE);
SendTransferRequest tir = new SendTransferRequest(seed, address, "0", "", Constants.NEW_ADDRESS_TAG);
runTask(rt, tir);
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method addressSecurityChange.
public static void addressSecurityChange(Context context, Seeds.Seed seed, Address address, int security) {
if (Validator.isValidCaller() && Store.getCurrentSeed() != null) {
if (security < 1)
security = 1;
if (security > 3)
security = 3;
AddressSecurityChangeRequest rtr = new AddressSecurityChangeRequest(seed, address, security);
TaskManager rt = new TaskManager(SERVICE);
runTask(rt, rtr);
}
}
Aggregations