Examples of packContentList()


Examples of iqq.im.bean.QQMsg.packContentList()

   */
  @QQNotifyHandler(QQNotifyEvent.Type.CHAT_MSG)
  public void processBuddyMsg(QQNotifyEvent event) throws QQException{
    QQMsg msg = (QQMsg) event.getTarget();
   
    System.out.println("[消息] " + msg.getFrom().getNickname() + "说:" + msg.packContentList());
    System.out.print("消息内容: ");
    List<ContentItem> items = msg.getContentList();
    for(ContentItem item : items) {
      if(item.getType() == ContentItem.Type.FACE) {
        System.out.print(" Face:" + ((FaceItem)item).getId());
View Full Code Here

Examples of iqq.im.bean.QQMsg.packContentList()

      public void onNotifyEvent(QQNotifyEvent event) {
        System.out.println("QQNotifyEvent: " + event.getType() +", " + event.getTarget());
        if(event.getType() ==  QQNotifyEvent.Type.CHAT_MSG){
          QQMsg msg = (QQMsg) event.getTarget();
          try {
            System.out.println("好友消息: " + msg.packContentList());
          } catch (QQException e) {
            e.printStackTrace();
          }
        }else if(event.getType() ==  QQNotifyEvent.Type.KICK_OFFLINE){
          System.out.println("被踢下线: " + (String)event.getTarget());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.