|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.vsms.bulksms.SmsSender
public final class SmsSender
Responsible for sending given sms message via designated server to desired number.
Constructor Summary | |
---|---|
SmsSender()
using singleton pattern |
Method Summary | |
---|---|
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. arabic and chinese messages can be correctly represented) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SmsSender()
Method Detail |
---|
public static String stringToHex(String s)
s
- text
protected 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 ISMSSender
number
- number to send text (sms), should include country codetext
- text to send
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |