コード例 #1
0
 /**
  * 组装ConferenceMemberEntity
  *
  * @param phoneNumber 选中的号码实体
  * @param contact 选中的espace联系人实体
  */
 private void setConfMemberEntity(PhoneNumber phoneNumber, PersonalContact contact) {
   People p = new People(contact.getEspaceNumber(), contact.getContactId(), null);
   ConferenceMemberEntity selectMember =
       new ConferenceMemberEntity(p, ContactUtil.getDisplayName(contact), phoneNumber.getNumber());
   selectMember.setEmail(contact.getEmail());
   selectMember.setAccount(contact.getEspaceNumber());
   selectMember.setStatus(ConferenceMemberEntity.STATUS_LEAVE_CONF);
   sendUpdateList(selectMember);
   notifyAdapter();
 }
コード例 #2
0
 /**
  * 删除所选联系人
  *
  * @param contact 所选联系人
  */
 private void removeSelectContact(PersonalContact contact) {
   Iterator<ConferenceMemberEntity> iterator;
   if (isFirstVisible) {
     iterator = newMembers.iterator();
   } else {
     iterator = selectMembers.iterator();
   }
   if (!StringUtil.isStringEmpty(contact.getEspaceNumber())) {
     addMemberLogic.removeSelectConfMember(contact.getEspaceNumber(), iterator, false);
   } else {
     addMemberLogic.removeSelectConfMember(contact.getContactId(), iterator, false);
   }
 }