List of usage examples for java.util HashMap put
public V put(K key, V value)
From source file:com.gst.integrationtests.common.GroupHelper.java
public static String getTestDatatableAsJson(HashMap<String, Object> map, final String registeredTableName) { List<HashMap<String, Object>> datatablesListMap = new ArrayList<>(); HashMap<String, Object> datatableMap = new HashMap<>(); HashMap<String, Object> dataMap = new HashMap<>(); dataMap.put("locale", "en"); dataMap.put("Spouse Name", Utils.randomNameGenerator("Spouse_name", 4)); dataMap.put("Number of Dependents", 5); dataMap.put("Time of Visit", "01 December 2016 04:03"); dataMap.put("dateFormat", DATE_TIME_FORMAT); dataMap.put("Date of Approval", "02 December 2016 00:00"); datatableMap.put("registeredTableName", registeredTableName); datatableMap.put("data", dataMap); datatablesListMap.add(datatableMap); map.put("datatables", datatablesListMap); return new Gson().toJson(map); }
From source file:com.bbxiaoqu.api.MarketAPI.java
public static void getFriends(Context context, ApiRequestListener handler, String userid) { final HashMap<String, Object> params = new HashMap<String, Object>(2); params.put("_userid", userid); new ApiAsyncTask(context, ACTION_GETFRIENDS, handler, params).execute(); }
From source file:com.bbxiaoqu.api.MarketAPI.java
public static void getUserInfo(Context context, ApiRequestListener handler, String userid) { final HashMap<String, Object> params = new HashMap<String, Object>(7); params.put("_userid", userid); new ApiAsyncTask(context, ACTION_GETUESERINFO, handler, params).execute(); }
From source file:com.bbxiaoqu.api.MarketAPI.java
public static void getMyrank(Context context, ApiRequestListener handler, String userid) { final HashMap<String, Object> params = new HashMap<String, Object>(7); params.put("_userid", userid); new ApiAsyncTask(context, ACTION_MYRANK, handler, params).execute(); }
From source file:com.bbxiaoqu.api.MarketAPI.java
public static void getRANK(Context context, ApiRequestListener handler, String order) { final HashMap<String, Object> params = new HashMap<String, Object>(7); params.put("_order", order); new ApiAsyncTask(context, ACTION_RANK, handler, params).execute(); }
From source file:com.bbxiaoqu.api.MarketAPI.java
public static void getUserSummaryInfo(Context context, ApiRequestListener handler, String userid) { final HashMap<String, Object> params = new HashMap<String, Object>(7); params.put("_userid", userid); new ApiAsyncTask(context, ACTION_GETUERSUMMARY, handler, params).execute(); }
From source file:com.bbxiaoqu.api.MarketAPI.java
public static void GetUserVisibleCommunity(Context context, ApiRequestListener handler, String userid) { final HashMap<String, Object> params = new HashMap<String, Object>(7); params.put("_userid", userid); new ApiAsyncTask(context, ACTION_GETUSERVISIBLECOMMUNITY, handler, params).execute(); }
From source file:com.bbxiaoqu.api.MarketAPI.java
public static void DAILYLOGIN(Context context, ApiRequestListener handler, String userid) { final HashMap<String, Object> params = new HashMap<String, Object>(7); params.put("_userid", userid); new ApiAsyncTask(context, ACTION_DAILYLOGIN, handler, params).execute(); }
From source file:com.bbxiaoqu.api.MarketAPI.java
public static void GetShopInfo(Context context, ApiRequestListener handler, String userid) { final HashMap<String, Object> params = new HashMap<String, Object>(7); params.put("_userid", userid); new ApiAsyncTask(context, ACTION_GETSHOPINFO, handler, params).execute(); }