/** * @return JSONObject * @throws JSONException */ public JSONObject sendcodeService3() throws JSONException { JSONObject objTemp = null; String url2 = "/androidstikyhive/index.php/api/users/getSkillById/format/json"; try { JSONObject obj = new JSONObject(); Log.i("skill Id ", "" + skillId); obj.put("skillId", skillId); objTemp = ws.insertORupdateObj(getResources().getString(R.string.url), url2, obj); } catch (Exception e) { // TODO: handle exception } finally { } return objTemp; }
/** * @return JSONObject * @throws JSONException */ public JSONObject sendcodeService4(String stkid) throws JSONException { JSONObject objTemp = null; String url2 = "/androidstikyhive/index.php/api/users/getUrgentRequest/format/json"; try { JSONObject obj = new JSONObject(); obj.put("limit", 3); obj.put("stkid", stkid); objTemp = ws.insertORupdateObj(getResources().getString(R.string.url), url2, obj); } catch (Exception e) { // TODO: handle exception } finally { } return objTemp; }
/** * @return JSONObject * @throws JSONException */ public JSONObject sendcodeService() throws JSONException { JSONObject objTemp = null; String url2 = "/androidstikyhive/index.php/api/users/getSellAll/format/json"; try { JSONObject obj = new JSONObject(); if (!flagRefresh) { obj.put("stkid", sellerStkid); } obj.put("limit", 0); obj.put("catId", 0); objTemp = ws.insertORupdateObj(getResources().getString(R.string.url), url2, obj); } catch (Exception e) { // TODO: handle exception } finally { } return objTemp; }