public class Client extends Object implements Serializable
| Constructor and Description |
|---|
Client()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RequestHandler |
connect()
Connect the SMS service.
|
void |
disconnect()
Disconnect the SMS service.
|
static Object |
getInstance()
The static method that creates an object of a class that implements an SMS service.
|
Message |
getNextMessage()
Get the next message in the in queue.
|
boolean |
isConnected()
Check if the SMS service is connected.
|
int |
numberOfWaitingMessages()
Get the number of messages in the in queue.
|
String |
send(String phone,
String message)
Send a message directly using the SMS service.
|
public static Object getInstance() throws IOException
IOExceptionpublic boolean isConnected()
public void disconnect()
public RequestHandler connect()
RequestHandler object.RequestHandler, null if connect failedpublic String send(String phone, String message)
phone - message - public Message getNextMessage() throws ConnectionException
Message
* @throws ConnectionExceptionConnectionExceptionpublic int numberOfWaitingMessages()
throws ConnectionException
ConnectionExceptionPhantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.