Search in sources :

Example 1 with GetNeighborsRequest

use of run.wallet.iota.api.requests.GetNeighborsRequest 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)1 GetNeighborsRequest (run.wallet.iota.api.requests.GetNeighborsRequest)1