Package com.calclab.emite.im.events

Examples of com.calclab.emite.im.events.SubscriptionRequestReceivedEvent$Handler


  @Override
  public void onPresenceReceived(final PresenceReceivedEvent event) {
    final Presence presence = event.getPresence();
    if (presence.getType() == Presence.Type.subscribe) {
      final XMLPacket nick = presence.getExtension("nick", XmppNamespaces.NICK);
      eventBus.fireEventFromSource(new SubscriptionRequestReceivedEvent(presence.getFrom(), nick.getText()), this);
    }
  }
View Full Code Here

TOP

Related Classes of com.calclab.emite.im.events.SubscriptionRequestReceivedEvent$Handler

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.