Examples of XmppPresence


Examples of com.anzsoft.client.XMPP.XmppPresence

      return true;
    }

    private XmppPresence createRoomPresence()
    {
      XmppPresence presence = session.getFactory().createRoomPresence();
      presence.setFrom(userId);
      presence.setTo(sessionRoomId);
      return presence;
    }
View Full Code Here

Examples of com.anzsoft.client.XMPP.XmppPresence

     * @see http://www.xmpp.org/extensions/xep-0045.html#enter
     */
    public void join(final XmppUser user)
    {
      userId = user.getID();
      XmppPresence presence = createRoomPresence();
      session.send(presence);
    }
View Full Code Here

Examples of com.anzsoft.client.XMPP.XmppPresence

     *
     * @see http://www.xmpp.org/extensions/xep-0045.html#exit
     */
    public void logout()
    {
      XmppPresence presence = createRoomPresence();
      presence.setType(XmppPresence.TYPE_UNAVAILABLE);
      session.send(presence);
    }
View Full Code Here

Examples of com.anzsoft.client.XMPP.XmppPresence

    session.send(message);
    }
   
    public void sendSubScription(final XmppID id,final String type,final String nick,final String status)
    {
      XmppPresence subscription = session.getFactory().createPresence();
      subscription.setTo(id);
      subscription.setType(type);
      subscription.setStatus(status);
      if(!nick.isEmpty())
      {
        //TODO : support nickname feature
      }
      session.send(subscription);     
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.