Package com.calclab.emite.core.client.xmpp.stanzas

Examples of com.calclab.emite.core.client.xmpp.stanzas.Presence


      public void onEvent(final IPacket stanza) {
    final String name = stanza.getName();
    if (name.equals("message")) {
        onMessage.fire(new Message(stanza));
    } else if (name.equals("presence")) {
        onPresence.fire(new Presence(stanza));
    } else if (name.equals("iq")) {
        final String type = stanza.getAttribute("type");
        if ("get".equals(type) || "set".equals(type)) {
      onIQ.fire(new IQ(stanza));
        } else {
View Full Code Here


    public SessionReady(final Session session) {
  session.onStateChanged(new Listener<State>() {
      public void onEvent(final State state) {
    if (state == State.loggedIn) {
        session.send(new Presence());
        session.setReady();
    }
      }
  });
    }
View Full Code Here

TOP

Related Classes of com.calclab.emite.core.client.xmpp.stanzas.Presence

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.