Exemplo n.º 1
0
 public void group() {
   Iterator<Group> it = this.client.getFetionStore().getGroupList().iterator();
   int groupId = 0;
   println("===========================群列表=================================");
   while (it.hasNext()) {
     Group group = it.next();
     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++;
   }
 }
Exemplo n.º 2
0
 /* (non-Javadoc)
  * @see net.solosky.maplefetion.NotifyListener#groupMessageRecived(net.solosky.maplefetion.bean.Group, net.solosky.maplefetion.bean.Member, java.lang.String, net.solosky.maplefetion.client.dialog.GroupDialog)
  */
 @Override
 public void groupMessageRecived(Group group, Member from, Message message, GroupDialog dialog) {
   println(
       "[群消息] 群 " + group.getName() + " 里的 " + from.getDisplayName() + " 说:" + message.getText());
   prompt();
 }