Package com.sissi.protocol.message

Examples of com.sissi.protocol.message.Message.delay()


   */
  @Override
  public Map<String, Object> write(Element element) {
    Map<String, Object> entity = super.write(element);
    Message message = Message.class.cast(element);
    if (message.delay()) {
      entity.put(Dictionary.FIELD_SOURCE, message.getDelay().getFrom());
      entity.put(Dictionary.FIELD_DELAY, message.getDelay().getStamp());
      entity.put(Dictionary.FIELD_FROM, super.jidBuilder.build(element.getFrom()).asStringWithBare());
    } else {
      entity.put(Dictionary.FIELD_SOURCE, this.relationMucMapping.mapping(super.jidBuilder.build(element.getFrom())).jid().asString());
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.