Examples of addOnEmpty()


Examples of com.sissi.protocol.iq.roster.GroupItem.addOnEmpty()

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    GroupItem item = protocol.cast(Roster.class).first();
    JID to = super.build(item.getJid());
    item.addOnEmpty(this.group).setAsk(this.ask()).setSubscription(this.subscription(context.jid(), to)).setJid(to.asStringWithBare());
    // Roster Set/Remove From必须=null
    super.broadcast(context.jid(), protocol.parent().setFrom((String) null));
    return true;
  }
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.