Package net.solosky.maplefetion.bean

Examples of net.solosky.maplefetion.bean.Member


      .createDefaultReceipt(notify.getFrom(), Integer.toString(notify.getCallID()), notify.getSequence());
      this.dialog.process(receipt);
     
      Group  group  = this.context.getFetionStore().getGroup(notify.getFrom());
     
      Member member = this.context.getFetionStore().getGroupMember(group, notify.getHeader("SO").getValue());
      String body   = notify.getBody()!=null?notify.getBody().toSendString():""//防止产生NULL错误
      GroupDialog groupDialog = this.context.getDialogFactory().findGroupDialog(group);
     
      if(group!=null && member!=null && groupDialog!=null&&this.context.getNotifyEventListener()!=null) {
        this.tryFireNotifyEvent(new GroupMessageEvent(group, member, this.parseMessage(notify), groupDialog));
       
        logger.debug("Received a group message:[ Group="+group.getName()+", from="+member.getDisplayName()+", msg="+body );
      }
    }
View Full Code Here


          //成员
          List members = el.getChildren("member");
          Iterator mit = members.iterator();
          while(mit.hasNext()) {
            Element ell = (Element) mit.next();
            Member member = this.context.getFetionStore().getGroupMember(group, ell.getAttributeValue("uri"));
            if(member!=null){
              BeanHelper.toBean(Member.class, member, ell);
            }
          }
        }
View Full Code Here

      //群下面的成员迭代
      List memberList = XMLHelper.findAll(g, "/group/*member");
      Iterator mit = memberList.iterator();
      while(mit.hasNext()) {
        Element e = (Element) mit.next();
        Member member = new Member();
       
        member.setUri(e.getAttributeValue("uri"));
        member.setNickName(e.getAttributeValue("nickname"));
        member.setIicNickName(e.getAttributeValue("iicnickname"));
        //member.setUserId(Integer.parseInt(e.getAttributeValue("user-id")));
        member.setT6svcid(Integer.parseInt(e.getAttributeValue("t6svcid")));
        member.setIdentity(Integer.parseInt(e.getAttributeValue("identity")));
       
        store.addGroupMember(group, member);
      }
    }
     
View Full Code Here

         this.groupmap.put(Integer.toString(groupId), group.getUri());
         println(groupId+"::"+group.getName()+'\t'+group.getBulletin()+"\t"+ group.getIntro());
         println("-----------------------------------------------------------------");
         Iterator<Member> mit = this.client.getFetionStore().getGroupMemberList(group).iterator();
         while(mit.hasNext()) {
           Member member = mit.next();
           println('\t'+member.getDisplayName()+"\t"+member.getUri());
         }
         println("-----------------------------------------------------------------");
         groupId++;
       }
     }
View Full Code Here

      //群下面的成员迭代
      List memberList = XMLHelper.findAll(g, "/group/*member");
      Iterator mit = memberList.iterator();
      while(mit.hasNext()) {
        Element e = (Element) mit.next();
        Member member = new Member();
        member.setUri(e.getAttributeValue("uri"));
        member.setNickName(e.getAttributeValue("nickname"));
        member.setIicNickName(e.getAttributeValue("iicnickname"));
        //member.setUserId(Integer.parseInt(e.getAttributeValue("user-id")));
        member.setT6svcid(Integer.parseInt(e.getAttributeValue("t6svcid")));
        member.setIdentity(Integer.parseInt(e.getAttributeValue("identity")));
       
        //BeanHelper.toBean(Member.class, member, e);
       
        store.addGroupMember(group, member);
      }
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.bean.Member

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.