Beispiel #1
0
 @Override
 public String toXml() {
   MessageBuilder mb = new MessageBuilder(super.toString());
   mb.addData("EventKey", eventKey);
   mb.addData("Ticket", ticket);
   return mb.toString();
 }
Beispiel #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();
 }