use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method getAccountData.
public static void getAccountData(Context context, Seeds.Seed seed, boolean force) {
if (Validator.isValidCaller() && Store.getCurrentSeed() != null) {
if (SERVICE != null && countSeedRunningTasks(seed) == 0 && !isGetAccountDataRunning(seed)) {
if (force || SERVICE.lastAccountCall < System.currentTimeMillis() - 10000) {
SERVICE.lastAccountCall = System.currentTimeMillis();
TaskManager rt = new TaskManager(SERVICE);
GetAccountDataRequest gna = new GetAccountDataRequest(seed);
gna.setForce(force);
runTask(rt, gna);
}
}
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method sendMessageToAddress.
public static void sendMessageToAddress(Context context, Seeds.Seed seed, String toAddress, String amountIOTA, String message, String tag) {
if (Validator.isValidCaller() && Store.getCurrentSeed() != null) {
TaskManager rt = new TaskManager(SERVICE);
MessageSendRequest tir = new MessageSendRequest(seed, toAddress, message, tag);
runMessageTask(rt, tir);
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method sendNewTransfer.
public static void sendNewTransfer(Context context, Seeds.Seed seed, String toAddress, String amountIOTA, List<Address> fromAddress, Address remainder, String message, String tag) {
if (Validator.isValidCaller() && Store.getCurrentSeed() != null) {
TaskManager rt = new TaskManager(SERVICE);
SendTransferRequest tir = new SendTransferRequest(seed, toAddress, amountIOTA, fromAddress, remainder, message, tag);
runTask(rt, tir);
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method checkUsedAddresses.
private static void checkUsedAddresses() {
Store.init(SERVICE, false);
if (!Store.getSeedList().isEmpty() && Store.getLastUsedCheck() < System.currentTimeMillis() - Cal.HOURS_24_IN_MILLIS) {
TaskManager rt = new TaskManager(SERVICE);
RefreshUsedAddressesRequest tir = new RefreshUsedAddressesRequest(null);
runTask(rt, tir);
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method sendNewTransfer.
public static void sendNewTransfer(Context context, Seeds.Seed seed, List<PayPacket.PayTo> payTos, List<Address> fromAddress, Address remainder, String message, String tag) {
if (Validator.isValidCaller() && Store.getCurrentSeed() != null) {
TaskManager rt = new TaskManager(SERVICE);
SendTransferRequest tir = new SendTransferRequest(seed, payTos, fromAddress, remainder, message, tag);
runTask(rt, tir);
}
}
Aggregations