Search in sources :

Example 1 with AddressSecurityChangeRequestHandler

use of run.wallet.iota.api.handler.AddressSecurityChangeRequestHandler 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;
}
Also used : NodeInfoRequestHandler(run.wallet.iota.api.handler.NodeInfoRequestHandler) GetFirstLoadRequestHandler(run.wallet.iota.api.handler.GetFirstLoadRequestHandler) HashMap(java.util.HashMap) FindTransactionsRequestHandler(run.wallet.iota.api.handler.FindTransactionsRequestHandler) AutoNudgeHandler(run.wallet.iota.api.handler.AutoNudgeHandler) AuditAddressesRequestHandler(run.wallet.iota.api.handler.AuditAddressesRequestHandler) GetNeighborsRequestHandler(run.wallet.iota.api.handler.GetNeighborsRequestHandler) GetNewAddressRequestHandler(run.wallet.iota.api.handler.GetNewAddressRequestHandler) AddressSecurityChangeRequestHandler(run.wallet.iota.api.handler.AddressSecurityChangeRequestHandler) ApiRequest(run.wallet.iota.api.requests.ApiRequest) GetBundleRequestHandler(run.wallet.iota.api.handler.GetBundleRequestHandler) RemoveNeighborsRequestHandler(run.wallet.iota.api.handler.RemoveNeighborsRequestHandler) ReplayBundleRequestHandler(run.wallet.iota.api.handler.ReplayBundleRequestHandler) SendTransferRequestHandler(run.wallet.iota.api.handler.SendTransferRequestHandler) RefreshUsedAddressesHandler(run.wallet.iota.api.handler.RefreshUsedAddressesHandler) GetBalanceAndFormatRequestHandler(run.wallet.iota.api.handler.GetBalanceAndFormatRequestHandler) GetAccountDataRequestHandler(run.wallet.iota.api.handler.GetAccountDataRequestHandler) GetBundleRequestHandler(run.wallet.iota.api.handler.GetBundleRequestHandler) RemoveNeighborsRequestHandler(run.wallet.iota.api.handler.RemoveNeighborsRequestHandler) GetNewAddressRequestHandler(run.wallet.iota.api.handler.GetNewAddressRequestHandler) GetFirstLoadRequestHandler(run.wallet.iota.api.handler.GetFirstLoadRequestHandler) GetBalanceAndFormatRequestHandler(run.wallet.iota.api.handler.GetBalanceAndFormatRequestHandler) ReplayBundleRequestHandler(run.wallet.iota.api.handler.ReplayBundleRequestHandler) NudgeRequestHandler(run.wallet.iota.api.handler.NudgeRequestHandler) FindTransactionsRequestHandler(run.wallet.iota.api.handler.FindTransactionsRequestHandler) GetNeighborsRequestHandler(run.wallet.iota.api.handler.GetNeighborsRequestHandler) AddressSecurityChangeRequestHandler(run.wallet.iota.api.handler.AddressSecurityChangeRequestHandler) AuditAddressesRequestHandler(run.wallet.iota.api.handler.AuditAddressesRequestHandler) RequestHandler(run.wallet.iota.api.handler.RequestHandler) NodeInfoRequestHandler(run.wallet.iota.api.handler.NodeInfoRequestHandler) AddNeighborsRequestHandler(run.wallet.iota.api.handler.AddNeighborsRequestHandler) SendTransferRequestHandler(run.wallet.iota.api.handler.SendTransferRequestHandler) AddNeighborsRequestHandler(run.wallet.iota.api.handler.AddNeighborsRequestHandler) NudgeRequestHandler(run.wallet.iota.api.handler.NudgeRequestHandler) GetAccountDataRequestHandler(run.wallet.iota.api.handler.GetAccountDataRequestHandler)

Aggregations

HashMap (java.util.HashMap)1 AddNeighborsRequestHandler (run.wallet.iota.api.handler.AddNeighborsRequestHandler)1 AddressSecurityChangeRequestHandler (run.wallet.iota.api.handler.AddressSecurityChangeRequestHandler)1 AuditAddressesRequestHandler (run.wallet.iota.api.handler.AuditAddressesRequestHandler)1 AutoNudgeHandler (run.wallet.iota.api.handler.AutoNudgeHandler)1 FindTransactionsRequestHandler (run.wallet.iota.api.handler.FindTransactionsRequestHandler)1 GetAccountDataRequestHandler (run.wallet.iota.api.handler.GetAccountDataRequestHandler)1 GetBalanceAndFormatRequestHandler (run.wallet.iota.api.handler.GetBalanceAndFormatRequestHandler)1 GetBundleRequestHandler (run.wallet.iota.api.handler.GetBundleRequestHandler)1 GetFirstLoadRequestHandler (run.wallet.iota.api.handler.GetFirstLoadRequestHandler)1 GetNeighborsRequestHandler (run.wallet.iota.api.handler.GetNeighborsRequestHandler)1 GetNewAddressRequestHandler (run.wallet.iota.api.handler.GetNewAddressRequestHandler)1 NodeInfoRequestHandler (run.wallet.iota.api.handler.NodeInfoRequestHandler)1 NudgeRequestHandler (run.wallet.iota.api.handler.NudgeRequestHandler)1 RefreshUsedAddressesHandler (run.wallet.iota.api.handler.RefreshUsedAddressesHandler)1 RemoveNeighborsRequestHandler (run.wallet.iota.api.handler.RemoveNeighborsRequestHandler)1 ReplayBundleRequestHandler (run.wallet.iota.api.handler.ReplayBundleRequestHandler)1 RequestHandler (run.wallet.iota.api.handler.RequestHandler)1 SendTransferRequestHandler (run.wallet.iota.api.handler.SendTransferRequestHandler)1 ApiRequest (run.wallet.iota.api.requests.ApiRequest)1