Search in sources :

Example 1 with MessageNewAddressRequestHandler

use of run.wallet.iota.api.handler.MessageNewAddressRequestHandler in project run-wallet-android by runplay.

the class IotaMessageApiProvider method loadRequestMap.

private void loadRequestMap() {
    Map<Class<? extends ApiRequest>, RequestHandler> requestHandlerMap = new HashMap<>();
    MessageSendRequestHandler sendMessageAction = new MessageSendRequestHandler(iotaApi, context);
    MessageNewAddressRequestHandler newAddressAction = new MessageNewAddressRequestHandler(iotaApi, context);
    MessageFirstLoadRequestHandler firstLoad = new MessageFirstLoadRequestHandler(iotaApi, context);
    requestHandlerMap.put(sendMessageAction.getType(), sendMessageAction);
    this.requestHandlerMap = requestHandlerMap;
}
Also used : MessageNewAddressRequestHandler(run.wallet.iota.api.handler.MessageNewAddressRequestHandler) MessageFirstLoadRequestHandler(run.wallet.iota.api.handler.MessageFirstLoadRequestHandler) MessageFirstLoadRequestHandler(run.wallet.iota.api.handler.MessageFirstLoadRequestHandler) RequestHandler(run.wallet.iota.api.handler.RequestHandler) MessageSendRequestHandler(run.wallet.iota.api.handler.MessageSendRequestHandler) MessageNewAddressRequestHandler(run.wallet.iota.api.handler.MessageNewAddressRequestHandler) HashMap(java.util.HashMap) MessageSendRequestHandler(run.wallet.iota.api.handler.MessageSendRequestHandler) ApiRequest(run.wallet.iota.api.requests.ApiRequest)

Aggregations

HashMap (java.util.HashMap)1 MessageFirstLoadRequestHandler (run.wallet.iota.api.handler.MessageFirstLoadRequestHandler)1 MessageNewAddressRequestHandler (run.wallet.iota.api.handler.MessageNewAddressRequestHandler)1 MessageSendRequestHandler (run.wallet.iota.api.handler.MessageSendRequestHandler)1 RequestHandler (run.wallet.iota.api.handler.RequestHandler)1 ApiRequest (run.wallet.iota.api.requests.ApiRequest)1