Package org.eclipse.ecf.presence.chatroom

Examples of org.eclipse.ecf.presence.chatroom.IChatRoomContainer.connect()


    final IChatRoomInvitationSender invitationSender = chat0.getInvitationSender();
    assertNotNull(invitationSender);
    final IChatRoomInfo roomInfo = chat0.getChatRoomInfo(CHAT_ROOM_NAME);
    if (roomInfo == null) return;
    final IChatRoomContainer chatRoomContainer = roomInfo.createChatRoomContainer();
    chatRoomContainer.connect(roomInfo.getRoomID(), null);
    invitationSender.sendInvitation(roomInfo.getRoomID(), getClient(1).getConnectedID(), null, "this is an invitation");
    try {
      synchronized (synchObject) {
        synchObject.wait(WAITTIME);
      }
View Full Code Here


    // connect to senderAccount using senderPassword
    client.connect(senderAccount, originalArgs[1]);
    // get chat room
    final IChatRoomContainer chatRoomContainer = client.createChatRoom(originalArgs[2]);
    // join/connect to chat room
    chatRoomContainer.connect(client.getChatRoomInfo().getRoomID(), null);

    System.out.println("ECF chat room robot sender=" + senderAccount + "  Connected to room: " + client.getChatRoomInfo().getRoomID().getName());
    // Add message listener to chat room
    chatRoomContainer.addMessageListener(this);
    // Get chat room message sender
View Full Code Here

        namespace,
        "irc://" + bot.getName() + "@" + bot.getServer());
    container.connect(targetID, null);
    IChatRoomInfo room = manager.getChatRoomInfo(bot.getChannel());
    IChatRoomContainer roomContainer = room.createChatRoomContainer();
    roomContainer.connect(room.getRoomID(), null);
    roomContainer.addMessageListener(this);
    sender = roomContainer.getChatRoomMessageSender();
  }

  public void handleMessageEvent(IIMMessageEvent event) {
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.