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;
}
}
Aggregations