Examples of MessageReceivedEvent


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

      eventBus.fireEventFromSource(new RoomSubjectChangedEvent(message.getFrom(), message.getSubject()), this);
      return;
    }
   
    eventBus.fireEventFromSource(new BeforeMessageReceivedEvent(message), this);
    eventBus.fireEventFromSource(new MessageReceivedEvent(message), this);
  }
View Full Code Here

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

        mode = SessionMode.offline;
        connection.disconnect();
      }
    } else {
      if ("message".equals(name)) {
        eventBus.fireEventFromSource(new MessageReceivedEvent(new Message(stanza)), this);
      } else if ("presence".equals(name)) {
        eventBus.fireEventFromSource(new PresenceReceivedEvent(new Presence(stanza)), this);
      } else if ("iq".equals(name)) {
        final IQ iq = new IQ(stanza);
        final IQ.Type type = iq.getType();
View Full Code Here

Examples of com.valhalla.jbother.plugins.events.MessageReceivedEvent

    }

    public void setLastReceivedMessage(Message message) {
        this.lastReceived = message;

        MessageReceivedEvent event = new MessageReceivedEvent(this);

        Message newMessage = new Message( message.getTo(), message.getType() );
        newMessage.setSubject(message.getSubject());
        newMessage.setBody(message.getBody());
        newMessage.setThread(message.getThread());
        event.setMessage(newMessage);
        com.valhalla.pluginmanager.PluginChain.fireEvent(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.