use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method runMessageFirstLoad.
public static void runMessageFirstLoad(Context context) {
if (Validator.isValidCaller() && Store.getCurrentSeed() != null && MsgStore.getSeed() == null) {
TaskManager rt = new TaskManager(SERVICE);
MsgStore.createSeed(SERVICE);
MessageFirstLoadRequest gtr = new MessageFirstLoadRequest();
runMessageTask(rt, gtr);
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method generateMessageNewAddress.
public static void generateMessageNewAddress(Context context) {
if (Validator.isValidCaller() && MsgStore.getSeed() != null) {
TaskManager rt = new TaskManager(SERVICE);
MessageNewAddressRequest gtr = new MessageNewAddressRequest(MsgStore.getSeed());
runTask(rt, gtr);
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class AppService method nudgeTransaction.
public static void nudgeTransaction(Context context, Seeds.Seed seed, Transfer transfer) {
if (Validator.isValidCaller() && Store.getCurrentSeed() != null) {
NudgeRequest rtr = new NudgeRequest(seed, transfer);
TaskManager rt = new TaskManager(SERVICE);
runTask(rt, rtr);
}
}
use of run.wallet.iota.api.TaskManager in project run-wallet-android by runplay.
the class NetworkNeighborsFragment method getNeighbors.
private void getNeighbors(boolean force) {
if (Store.getNeighbours() == null || force) {
GetNeighborsRequest nar = new GetNeighborsRequest();
TaskManager rt = new TaskManager(getActivity());
rt.startNewRequestTask(nar);
if (!swipeRefreshLayout.isRefreshing()) {
swipeRefreshLayout.post(() -> swipeRefreshLayout.setRefreshing(true));
}
}
}
Aggregations