use of run.wallet.iota.api.handler.GetFirstLoadRequestHandler in project run-wallet-android by runplay.
the class IotaApiProvider method loadRequestMap.
private void loadRequestMap() {
Map<Class<? extends ApiRequest>, RequestHandler> requestHandlerMap = new HashMap<>();
AddressSecurityChangeRequestHandler addressSecurity = new AddressSecurityChangeRequestHandler(iotaApi, context);
AddNeighborsRequestHandler addNeighborsAction = new AddNeighborsRequestHandler(iotaApi, context);
AuditAddressesRequestHandler auditAddresses = new AuditAddressesRequestHandler(iotaApi, context);
AutoNudgeHandler autoNudge = new AutoNudgeHandler(iotaApi, context);
RefreshUsedAddressesHandler refreshUsed = new RefreshUsedAddressesHandler(iotaApi, context);
FindTransactionsRequestHandler findTransactionsAction = new FindTransactionsRequestHandler(iotaApi, context);
GetBundleRequestHandler getBundleAction = new GetBundleRequestHandler(iotaApi, context);
GetNeighborsRequestHandler getNeighborsAction = new GetNeighborsRequestHandler(iotaApi, context);
GetNewAddressRequestHandler getNewAddressAction = new GetNewAddressRequestHandler(iotaApi, context);
GetAccountDataRequestHandler getAccountDataAction = new GetAccountDataRequestHandler(iotaApi, context);
RemoveNeighborsRequestHandler removeNeighborsAction = new RemoveNeighborsRequestHandler(iotaApi, context);
ReplayBundleRequestHandler replayBundleAction = new ReplayBundleRequestHandler(iotaApi, context);
SendTransferRequestHandler sendTransferAction = new SendTransferRequestHandler(iotaApi, context);
NodeInfoRequestHandler nodeInfoAction = new NodeInfoRequestHandler(iotaApi, context);
GetFirstLoadRequestHandler firstLoad = new GetFirstLoadRequestHandler(iotaApi, context);
NudgeRequestHandler nudgeRequest = new NudgeRequestHandler(iotaApi, context);
GetBalanceAndFormatRequestHandler getBalanceAndFormatRequest = new GetBalanceAndFormatRequestHandler(iotaApi, context);
requestHandlerMap.put(refreshUsed.getType(), refreshUsed);
requestHandlerMap.put(autoNudge.getType(), autoNudge);
requestHandlerMap.put(nudgeRequest.getType(), nudgeRequest);
requestHandlerMap.put(addressSecurity.getType(), addressSecurity);
requestHandlerMap.put(auditAddresses.getType(), auditAddresses);
requestHandlerMap.put(firstLoad.getType(), firstLoad);
requestHandlerMap.put(addNeighborsAction.getType(), addNeighborsAction);
requestHandlerMap.put(findTransactionsAction.getType(), findTransactionsAction);
requestHandlerMap.put(getBundleAction.getType(), getBundleAction);
requestHandlerMap.put(getNeighborsAction.getType(), getNeighborsAction);
requestHandlerMap.put(getNewAddressAction.getType(), getNewAddressAction);
requestHandlerMap.put(getAccountDataAction.getType(), getAccountDataAction);
requestHandlerMap.put(removeNeighborsAction.getType(), removeNeighborsAction);
requestHandlerMap.put(replayBundleAction.getType(), replayBundleAction);
requestHandlerMap.put(sendTransferAction.getType(), sendTransferAction);
requestHandlerMap.put(nodeInfoAction.getType(), nodeInfoAction);
requestHandlerMap.put(getBalanceAndFormatRequest.getType(), getBalanceAndFormatRequest);
this.requestHandlerMap = requestHandlerMap;
}
Aggregations