Package org.jivesoftware.smack.packet

Examples of org.jivesoftware.smack.packet.RosterPacket


  protected void handleIQEvent(IQEvent evt) {
    final IQ iq = evt.getIQ();
    if (iq instanceof RosterPacket) {
      // Roster packet...report to UI
      final RosterPacket rosterPacket = (RosterPacket) iq;
      if (rosterPacket.getType() == IQ.Type.SET
          || rosterPacket.getType() == IQ.Type.RESULT) {
        for (final Iterator i = rosterPacket.getRosterItems()
            .iterator(); i.hasNext();) {
          final RosterPacket.Item item = (RosterPacket.Item) i.next();
          final RosterPacket.ItemType itemType = item.getItemType();
          XMPPID newID = createIDFromName(item.getUser());
          boolean remove = false;
View Full Code Here

TOP

Related Classes of org.jivesoftware.smack.packet.RosterPacket

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.