コード例 #1
0
 private boolean hasUserExist(int uid) {
   AddrlistNewData item =
       QiuKnowUserFacade.queryQiukonwUserInfo(mUserDetailInfo.getUser_info().getUid() + "");
   if (item != null) {
     return AddrlistNewConstant.StatusType.Status_ToAgree == item.getStatus() ? true : false;
   }
   return false;
 }
コード例 #2
0
  private void onReceivedReplyMessage(String jid, String msg) {
    Message replyMessage = MessageFactory.parseMessage(msg);
    if (replyMessage == null || replyMessage.getMsgType() != MsgTypeConstant.ReplyNewAddrMsgType) {
      return;
    }

    String uid = jid.substring(0, jid.indexOf("@"));
    replyMessage.setUid(uid);

    // update the database
    QiuKnowUserFacade.updateAgreeQiuknowUser(jid, (ReplyMessage) replyMessage);

    // update the HotPoint
    AddrHotpointManager.showAddressListHotpoint();

    // notify the addrList
    for (IReplyMessage listener : mListener) {
      listener.onReplyMessageChange();
    }
  }