
public final class SmsSender extends Object implements ISMSSender
| Constructor and Description |
|---|
SmsSender()
using singleton pattern
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getBulkSMSsendStatus(String result)
Helper method to decipher bulksms server's response on send sms.
|
void |
sendMessage(String number,
String text) |
static String |
stringToHex(String s)
Unicode support (so that e.g.
|
public static String stringToHex(String s)
s - textprotected String getBulkSMSsendStatus(String result)
result - string containing status from bulksms server (e.g.
25|FAILED_USERCREDITS|342762992)public void sendMessage(String number, String text)
sendMessage in interface ISMSSendernumber - number to send text (sms), should include country codetext - text to sendCopyright © 2018 universAAL Consortium. All rights reserved.