Example #1
0
 public void sendGetUserInfoRequest(String remark_token, String uid) {
   RequestParams params = new RequestParams();
   params.addQueryStringParameter("remark_token", remark_token);
   params.addQueryStringParameter("uid", uid);
   httpHanlder =
       HttpSenderUtils.sendMsgImpl(
           ACTION_USER_INFO,
           params,
           HttpSenderUtils.METHOD_GET,
           httpUtils,
           RequestId.USER_INFO,
           this,
           false);
 }
Example #2
0
 public void sendGetUserRequest(String remark_token, String keyword, int type) {
   this.type = type;
   if (type == 0) {
     targetCurPage = 1;
   } else {
     targetCurPage = curPage + 1;
   }
   RequestParams params = new RequestParams();
   params.addQueryStringParameter("remark_token", remark_token);
   params.addQueryStringParameter("keyword", keyword);
   params.addQueryStringParameter("cur_page", "" + targetCurPage);
   params.addQueryStringParameter("per_page", perPage);
   httpHanlder =
       HttpSenderUtils.sendMsgImpl(
           ACTION_SEARCH_USER,
           params,
           HttpSenderUtils.METHOD_GET,
           httpUtils,
           RequestId.GET_USER,
           this,
           false);
 }
Example #3
0
 public void sendSaveUserInfoRequest(String remark_token, User user) {
   RequestParams params = new RequestParams();
   params.addBodyParameter("remark_token", remark_token);
   params.addBodyParameter("username", user.getName());
   params.addBodyParameter("summary", user.getSummary());
   params.addBodyParameter("realname", user.getRealname());
   params.addBodyParameter("addr", user.getAddr());
   params.addBodyParameter("zip_code", user.getZipCode());
   params.addBodyParameter("ship_time", user.getShipTime());
   params.addBodyParameter("phone", user.getPhone());
   params.addBodyParameter("company", user.getCommpany());
   params.addBodyParameter("education", user.getEducation());
   params.addBodyParameter("phone", user.getPhone());
   httpHanlder =
       HttpSenderUtils.sendMsgImpl(
           ACTION_MODIFY_USER_INFO,
           params,
           HttpSenderUtils.METHOD_POST,
           httpUtils,
           RequestId.MODIFY_USER_INFO,
           this,
           false);
 }