Package com.sissi.protocol.message

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


  @Override
  public Map<String, Object> write(Element element) {
    Map<String, Object> entity = super.write(element);
    Message message = Message.class.cast(element);
    entity.put(Dictionary.FIELD_ACK, !message.request());
    entity.put(Dictionary.FIELD_THREAD, message.thread());
    entity.put(Dictionary.FIELD_BODY, message.content() ? message.getBody().getText() : null);
    return entity;
  }

  /*
 
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.