private void fetchSearchServiceCardsFromServer(String keyword,String categoryId){
  final Map<String,String> params=new HashMap<String,String>(5);
  params.put(HttpConstants.LATITUDE,SharedPreferenceHelper.getString(R.string.pref_latitude));
  params.put(HttpConstants.LONGITUDE,SharedPreferenceHelper.getString(R.string.pref_longitude));
  params.put(HttpConstants.TYPE,HttpConstants.SearchType.SERVICE_CARD);
  params.put(HttpConstants.GROUP_ID,categoryId);
  params.put(HttpConstants.PER,"20");
  params.put(HttpConstants.RADIUS,"50");
  params.put(HttpConstants.TITLE,keyword);
  RetroCallback retroCallback;
  retroCallback=new RetroCallback(this);
  retroCallback.setRequestId(HttpConstants.ApiResponseCodes.SEARCH_SERVICES);
  retroCallbackList.add(retroCallback);
  params.put(HttpConstants.PAGE,"1");
  mYeloApi.getServiceCards(params,retroCallback);
  mSwipeRefreshLayout.setRefreshing(true);
}

private void fetchSearchServiceCardsFromServer ( String keyword , String categoryId ) { final Map < String , String > params = new HashMap < String , String > ( 5 ) ; params . put ( HttpConstants . LATITUDE , SharedPreferenceHelper . getString ( R . string . pref_latitude ) ) ; params . put ( HttpConstants . LONGITUDE , SharedPreferenceHelper . getString ( R . string . pref_longitude ) ) ; params . put ( HttpConstants . TYPE , HttpConstants . SearchType . SERVICE_CARD ) ; params . put ( HttpConstants . GROUP_ID , categoryId ) ; params . put ( HttpConstants . PER , "20" ) ; params . put ( HttpConstants . RADIUS , "50" ) ; params . put ( HttpConstants . TITLE , keyword ) ; RetroCallback retroCallback ; retroCallback = new RetroCallback ( this ) ; retroCallback . setRequestId ( HttpConstants . ApiResponseCodes . SEARCH_SERVICES ) ; retroCallbackList . add ( retroCallback ) ; params . put ( HttpConstants . PAGE , "1" ) ; mYeloApi . getServiceCards ( params , retroCallback ) ; mSwipeRefreshLayout . setRefreshing ( true ) ; }
helper http function to get list of my service cards based on keyword and category
