Esempio n. 1
0
 @Override
 public void loadSendList() {
   pd = ProgressDialog.show(this, null, getString(R.string.progress_msg_loading));
   MispBaseReqJson req = new MispBaseReqJson();
   List<QueryCondition> conditionList = new ArrayList<QueryCondition>();
   conditionList.add(
       new QueryCondition(
           ConditionTypeEnum.EQUAL,
           "create_user_id",
           AppCache.getInstance().getUser().getUser_id()));
   req.setConditionList(conditionList);
   WebServiceContext.getInstance().getProjectRest(this).loadAll(req);
 }
Esempio n. 2
0
 private void createProject(String name) {
   MispBaseReqJson req = new MispBaseReqJson();
   ProjectJson json = new ProjectJson();
   json.setProject_name(name);
   json.setCreate_user_id(AppCache.getInstance().getUser().getUser_id());
   json.setCreate_time(DateUtil.getCurrentDateTimeStr());
   req.setObj(json);
   WebServiceContext.getInstance()
       .getProjectRest(
           new MispHttpHandler() {
             @Override
             public void handle(MispHttpMessage message) {
               if (message.isSuccess()) {
                 loadSendList();
               } else {
                 showMessage(message);
               }
             }
           })
       .createProject(req);
 }