Package com.calclab.emite.im.chat

Examples of com.calclab.emite.im.chat.PairChat.send()


      @Override
      public void onChange(final ChangeEvent event) {
        final String msg = input.getText();
        log("Message sent: " + msg);
        final PairChat chat = chatManager.openChat(uri(user));
        chat.send(new Message(msg));
        input.setText("");
      }
    });

    final PairChat chat = chatManager.openChat(uri(user));
View Full Code Here


  @Test
  public void shouldSendNoThreadWhenNotSpecified() {
    final ChatProperties properties = new ChatProperties(CHAT_URI, USER_URI, ChatStatus.locked);
    final PairChat noThreadChat = new PairChat(eventBus, session, properties);
    noThreadChat.setStatus(ChatStatus.ready);
    noThreadChat.send(new Message("the message"));
    session.verifySent("<message from='self@domain/res' to='other@domain/other' " + "type='chat'><body>the message</body></message>");
  }

  @Test
  public void shouldSendThreadWhenSpecified() {
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.