private void handleAcceptDone() { CrowdGroup g = new CrowdGroup(crowd.getId(), crowd.getName(), crowd.getCreator(), null); g.setBrief(crowd.getBrief()); g.setAnnouncement(crowd.getAnnounce()); GlobalHolder.getInstance().addGroupToList(GroupType.CHATING.intValue(), g); Intent i = new Intent(); i.setAction(PublicIntent.BROADCAST_NEW_CROWD_NOTIFICATION); i.addCategory(JNIService.JNI_BROADCAST_CATEGROY); i.putExtra("crowd", crowd.getId()); sendBroadcast(i); vq.setReadState(VMessageQualification.ReadState.READ); vq.setQualState(VMessageQualification.QualificationState.ACCEPTED); MessageBuilder.updateQualicationMessage(mContext, vq); updateView(false); }
/** * Search content from server side * * @param par * @param caller */ public void search(SearchParameter par, Registrant caller) { if (!this.checkParamNull(caller, par)) { return; } initTimeoutMessage(SEARCH, DEFAULT_TIME_OUT_SECS, caller); int startNo = (par.mPageNo - 1) * par.mPageSize; if (par.mType == Type.CROWD) { int gType = 0; if (par.mType == Type.CROWD) { gType = GroupType.CHATING.intValue(); } else if (par.mType == Type.CONFERENCE) { gType = GroupType.CONFERENCE.intValue(); } GroupRequest.getInstance().searchGroup(gType, par.text, startNo, par.mPageSize); } else if (par.mType == Type.MEMBER) { ImRequest.getInstance().searchMember(par.text, startNo, par.mPageSize); } }