Package org.eclipse.ecf.presence.chatroom

Examples of org.eclipse.ecf.presence.chatroom.IChatRoomMessage


  }

  public void handleMessageEvent(IIMMessageEvent event) {
    if (event instanceof IChatRoomMessageEvent) {
      IChatRoomMessageEvent roomEvent = (IChatRoomMessageEvent) event;
      IChatRoomMessage message = roomEvent.getChatRoomMessage();
      List commands = bot.getCommands();
      for (int i = 0; i < commands.size(); i++) {
        IChatRoomMessageHandlerEntry entry = (IChatRoomMessageHandlerEntry) commands
            .get(i);
        entry.handleRoomMessage(message);
View Full Code Here


    }
  }

  public void handleMessageEvent(IIMMessageEvent messageEvent) {
    if (messageEvent instanceof IChatRoomMessageEvent) {
      final IChatRoomMessage m = ((IChatRoomMessageEvent) messageEvent).getChatRoomMessage();
      handleChatRoomMessage(m.getFromID(), m.getMessage());
    }
  }
View Full Code Here

  }

  public void handleMessageEvent(IIMMessageEvent event) {
    if (event instanceof IChatRoomMessageEvent) {
      IChatRoomMessageEvent roomEvent = (IChatRoomMessageEvent) event;
      IChatRoomMessage message = roomEvent.getChatRoomMessage();
      List commands = bot.getCommands();
      for(int i = 0; i < commands.size(); i++) {
        ICommandEntry entry = (ICommandEntry) commands.get(i);
        entry.execute(message.getMessage(), sender);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.presence.chatroom.IChatRoomMessage

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.