Example #1
0
 private OutboundMessage convertSMSToOutboundMsg(XProApplication application) {
   OutboundMessage outboundMsg = new OutboundMessage();
   outboundMsg.setPriority(2147483647);
   outboundMsg.setStatusReport(true);
   outboundMsg.setRecipient(application.getSmsReceiverNum());
   outboundMsg.setText(application.getSmsContent());
   return outboundMsg;
 }
Example #2
0
 public OutboundMessage getOutboundMessage(String msg, String recipient) {
   OutboundMessage outboundMsg = new OutboundMessage();
   outboundMsg.setEncoding(MessageEncodings.ENCUCS2);
   outboundMsg.setDeliveryDelay(2000);
   try {
     outboundMsg.addText(msg);
   } catch (UnsupportedEncodingException e) {
     e.printStackTrace();
   }
   outboundMsg.setRecipient(recipient);
   return outboundMsg;
 }