Search in sources :

Example 21 with TaskManager

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);
    }
}
Also used : TaskManager(run.wallet.iota.api.TaskManager) MessageFirstLoadRequest(run.wallet.iota.api.requests.MessageFirstLoadRequest)

Example 22 with TaskManager

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);
    }
}
Also used : TaskManager(run.wallet.iota.api.TaskManager) MessageNewAddressRequest(run.wallet.iota.api.requests.MessageNewAddressRequest)

Example 23 with TaskManager

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);
    }
}
Also used : TaskManager(run.wallet.iota.api.TaskManager) AutoNudgeRequest(run.wallet.iota.api.requests.AutoNudgeRequest) NudgeRequest(run.wallet.iota.api.requests.NudgeRequest)

Example 24 with TaskManager

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));
        }
    }
}
Also used : TaskManager(run.wallet.iota.api.TaskManager) GetNeighborsRequest(run.wallet.iota.api.requests.GetNeighborsRequest)

Aggregations

TaskManager (run.wallet.iota.api.TaskManager)24 SendTransferRequest (run.wallet.iota.api.requests.SendTransferRequest)4 AuditAddressesRequest (run.wallet.iota.api.requests.AuditAddressesRequest)2 AutoNudgeRequest (run.wallet.iota.api.requests.AutoNudgeRequest)2 GetAccountDataRequest (run.wallet.iota.api.requests.GetAccountDataRequest)2 NodeInfoRequest (run.wallet.iota.api.requests.NodeInfoRequest)2 RefreshUsedAddressesRequest (run.wallet.iota.api.requests.RefreshUsedAddressesRequest)2 AddressSecurityChangeRequest (run.wallet.iota.api.requests.AddressSecurityChangeRequest)1 GetFirstLoadRequest (run.wallet.iota.api.requests.GetFirstLoadRequest)1 GetNeighborsRequest (run.wallet.iota.api.requests.GetNeighborsRequest)1 GetNewAddressRequest (run.wallet.iota.api.requests.GetNewAddressRequest)1 MessageFirstLoadRequest (run.wallet.iota.api.requests.MessageFirstLoadRequest)1 MessageNewAddressRequest (run.wallet.iota.api.requests.MessageNewAddressRequest)1 MessageSendRequest (run.wallet.iota.api.requests.MessageSendRequest)1 NudgeRequest (run.wallet.iota.api.requests.NudgeRequest)1 ReplayBundleRequest (run.wallet.iota.api.requests.ReplayBundleRequest)1 WebGetExchangeRatesHistoryRequest (run.wallet.iota.api.requests.WebGetExchangeRatesHistoryRequest)1 WebGetExchangeRatesRequest (run.wallet.iota.api.requests.WebGetExchangeRatesRequest)1