Package com.anzsoft.client.XMPP

Examples of com.anzsoft.client.XMPP.XmppMessage


      presenceListeners.add(listener);
    }

    protected XmppMessage createMessage(final String body)
    {
      XmppMessage message = session.getFactory().createMessage();
      message.setFrom(session.getUser().getID());
      message.setTo(roomId);
      message.setBody(body);
      message.setType(XmppMessage.TYPE_MULTI);
      return message;
    }
View Full Code Here


    public boolean isRoom() {
  return false;
    }

    public void sendMessage(final String body) {
  XmppMessage message = createMessage(body);
  session.send(message);
    }
View Full Code Here

  XmppMessage message = createMessage(body);
  session.send(message);
    }

    protected XmppMessage createMessage(final String body) {
  XmppMessage message = session.getFactory().createMessage();
  message.setFrom(session.getUser().getID());
  message.setTo(sessionUserId);
  message.setBody(body);
  message.setType(XmppMessage.TYPE_CHAT);
  return message;
    }
View Full Code Here

    }
   

    public void sendMessage(final String body, final String destination)
    {
    XmppMessage message = session.getFactory().createMessage();
    message.setFrom(session.getUser().getID());
    message.setTo(userID);
    message.setBody(body);
    message.setType(XmppMessage.TYPE_CHAT);
    session.send(message);
    }
View Full Code Here

TOP

Related Classes of com.anzsoft.client.XMPP.XmppMessage

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.