| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CHAR_LIMIT |
protected org.apache.commons.codec.net.URLCodec |
encoder |
| Constructor and Description |
|---|
Operator(Account account)
Create a new Operator using the provided account.
|
| Modifier and Type | Method and Description |
|---|---|
Account |
getAccount()
|
int |
getCharacterLimit() |
int |
getRemainingSMS()
This method is used to get the users remaining SMS count from an operators website.
|
OperationResult |
login()
This method is used to login to an operators website.
|
OperationResult |
send(List<String> list,
String message)
This method is responsible for sending an SMS message through the operators website.
|
protected String |
uriDecode(String message) |
protected String |
uriEncode(String message) |
public static final int DEFAULT_CHAR_LIMIT
protected final org.apache.commons.codec.net.URLCodec encoder
public final OperationResult login()
Operator will implement the specific login algorithm in the doLogin() method.true if the login was successful else falsepublic final int getRemainingSMS()
Operator will implement the specific get algorithm in the
doGetRemainingSMS() method.-1 if it can't be determined.public final OperationResult send(List<String> list, String message)
Operator will implement the specific send algorithm in the
doSend(List, String) method.list - A list of phone numbers the message will be sent to.message - The message to send.true if the message was sent successfully else falsepublic final int getCharacterLimit()
public Account getAccount()
Account used to construct this instance of Operator. It contains the users
details.AccountCopyright © 2015. All rights reserved.