Package de.mcripper.chatlib

Examples of de.mcripper.chatlib.Message


  protected void notifyMessageHandler(
      final org.jivesoftware.smack.packet.Message message) {
    final User sender = this.userManager
        .getUser(this.chat.getParticipant());

    final Message newMessage = new Message(message.getBody(), this, sender);

    for (final MessageHandler handler : this.messageHandlers) {
      handler.receive(this, newMessage);
    }
  }
View Full Code Here


    this.messageHandlers.remove(messageHandler);
  }

  @Override
  public void sendMessage(final String string) {
    final Message message = new Message(string, this,
        this.connection.getUser());
    this.sendMessage(message);
  }
View Full Code Here

TOP

Related Classes of de.mcripper.chatlib.Message

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.