Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }