public static PostRequestJson deleteComment( BaseFragment fragment, int commentId, Callback callback) { IdParam idParam = new IdParam(commentId); final String json = QueryJson.deleteContentById(fragment, idParam); String url = PathConstant.BASE_URL + PathConstant.RECOMMEND_COLLECT + PathConstant.ALUMNI_TALK_COMMENT_SUB_PATH_CANCEL; PostRequestJson mRequestJson = new PostRequestJson(url, json, callback); Log.i(TAG, url); Log.i(TAG, json); HttpManager.getInstance().exeRequest(mRequestJson); return mRequestJson; }
public static PostRequestJson deleteMyRecommend( BaseFragment fragment, int id, Callback callback) { IdParam idParam = new IdParam(); idParam.setId(id); final String json = QueryJson.deleteContentById(fragment, idParam); String url = PathConstant.BASE_URL + PathConstant.RECOMMEND_WORK_PATH + PathConstant.RECOMMEND_WORK_SUB_PATH_CANCEL; PostRequestJson mRequestQueryJson = new PostRequestJson(url, json, callback); Log.e(TAG, url); Log.i(TAG, json); HttpManager.getInstance().exeRequest(mRequestQueryJson); return mRequestQueryJson; }