Search in sources :

Example 1 with WebGetExchangeRatesHistoryRequestHandler

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

the class BasicApiProvider method loadRequestMap.

private void loadRequestMap() {
    if (useRequestHandlerMap == null) {
        Map<Class<? extends ApiRequest>, RequestHandler> requestHandlerMap = new HashMap<>();
        WebGetExchangeRatesRequestHandler webExchangeAction = new WebGetExchangeRatesRequestHandler(context);
        WebGetExchangeRatesHistoryRequestHandler webExchangeHistoryAction = new WebGetExchangeRatesHistoryRequestHandler(context);
        requestHandlerMap.put(webExchangeAction.getType(), webExchangeAction);
        requestHandlerMap.put(webExchangeHistoryAction.getType(), webExchangeHistoryAction);
        useRequestHandlerMap = requestHandlerMap;
    }
}
Also used : WebGetExchangeRatesHistoryRequestHandler(run.wallet.iota.api.handler.WebGetExchangeRatesHistoryRequestHandler) RequestHandler(run.wallet.iota.api.handler.RequestHandler) WebGetExchangeRatesHistoryRequestHandler(run.wallet.iota.api.handler.WebGetExchangeRatesHistoryRequestHandler) WebGetExchangeRatesRequestHandler(run.wallet.iota.api.handler.WebGetExchangeRatesRequestHandler) HashMap(java.util.HashMap) ApiRequest(run.wallet.iota.api.requests.ApiRequest) WebGetExchangeRatesRequestHandler(run.wallet.iota.api.handler.WebGetExchangeRatesRequestHandler)

Aggregations

HashMap (java.util.HashMap)1 RequestHandler (run.wallet.iota.api.handler.RequestHandler)1 WebGetExchangeRatesHistoryRequestHandler (run.wallet.iota.api.handler.WebGetExchangeRatesHistoryRequestHandler)1 WebGetExchangeRatesRequestHandler (run.wallet.iota.api.handler.WebGetExchangeRatesRequestHandler)1 ApiRequest (run.wallet.iota.api.requests.ApiRequest)1