Package xnap.plugin.nap.net.msg.client

Examples of xnap.plugin.nap.net.msg.client.PrivateMessage


  if (prefs.getUseMinimumShares()) {
      if (update() && getFileCount() < prefs.getMinimumShares()) {
    // send message to peer
    if (prefs.getSendMinimumSharesMessage()) {
        PrivateMessage msg = new PrivateMessage
      (getName(), prefs.getMinimumSharesMessage());
        MessageHandler.send(server, msg);
    }
    return false;
      }
View Full Code Here


  messageReceived(user, message);

  if (prefs.getSendChatAwayMessage()
      && (System.currentTimeMillis() - lastAwayMessageSent
    > AWAY_MESSAGE_INTERVAL)) {
      PrivateMessage msg = new PrivateMessage
    (user.getName(), prefs.getChatAwayMessage());
      MessageHandler.send(server, msg);
      messageReceived(server.getUser(),
          prefs.getChatAwayMessage());
      lastAwayMessageSent = System.currentTimeMillis();
View Full Code Here

  }
    }

    public void sendMessage(String message) throws IOException
    {
  PrivateMessage msg = new PrivateMessage(user.getName(), message);
  msg.setExceptionListener(this);
  MessageHandler.send(server, msg);
  lastSent = System.currentTimeMillis();

  // self copy
  messageReceived(server.getUser(), message);
View Full Code Here

TOP

Related Classes of xnap.plugin.nap.net.msg.client.PrivateMessage

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.