Esempio n. 1
0
 @Override
 public String toXml() {
   MessageBuilder mb = new MessageBuilder(super.toString());
   mb.addData("EventKey", eventKey);
   mb.addData("Ticket", ticket);
   return mb.toString();
 }
Esempio n. 2
0
 @Override
 public String toXml() {
   MessageBuilder mb = new MessageBuilder(super.toXml());
   mb.addData("MsgType", RespType.IMAGE);
   mb.append("<Image>\n");
   mb.addData("MediaId", mediaId);
   mb.append("</Image>\n");
   mb.surroundWith("xml");
   return mb.toString();
 }