Examples of BeforeMessageSentEvent


Examples of com.calclab.emite.core.events.BeforeMessageSentEvent

   
    message.setTo(uri);
    message.setType(Message.Type.chat);
    message.setThread(thread);

    eventBus.fireEventFromSource(new BeforeMessageSentEvent(message), this);
    session.send(message);
    eventBus.fireEventFromSource(new MessageSentEvent(message), this);
  }
View Full Code Here

Examples of com.calclab.emite.core.events.BeforeMessageSentEvent

 
  public void send(final Message message) {
    message.setTo(roomUri.getJID());
    message.setType(Message.Type.groupchat);
   
    eventBus.fireEventFromSource(new BeforeMessageSentEvent(message), this);
    session.send(message);
    eventBus.fireEventFromSource(new MessageSentEvent(message), this);
  }
View Full Code Here

Examples of com.calclab.emite.core.events.BeforeMessageSentEvent

  public void sendPrivateMessage(final Message message, final String nick) {
    message.setTo(XmppURI.uri(roomUri.getNode(), roomUri.getHost(), nick));
    message.setType(Message.Type.chat);
   
    eventBus.fireEventFromSource(new BeforeMessageSentEvent(message), this);
    session.send(message);
    eventBus.fireEventFromSource(new MessageSentEvent(message), this);
  }
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.