Package com.sissi.context

Examples of com.sissi.context.JIDContext.status()


public class LastJIDProcessor extends ProxyProcessor {

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    JIDContext to = super.findOne(protocol.parent().to() ? super.build(protocol.parent().getTo()) : context.jid(), true);
    context.write(protocol.cast(Last.class).seconds().seconds(to.idle()).text(to.status().clauses().find(StatusClauses.KEY_STATUS)).parent().reply().setType(ProtocolType.RESULT));
    return false;
  }
}
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.