public class Message extends Object implements Serializable
Constructor and Description |
---|
Message(String phone,
String sendMsg)
Creates a message with a phone number and a message text to send.
|
Modifier and Type | Method and Description |
---|---|
String |
getPhone()
The phone number specified in the constructor.
|
String |
getText()
Gets the text of the message.
|
String |
toString()
The representation of the message in a String.
|
public Message(String phone, String sendMsg) throws MessageFormatException
phone
- The phone number.sendMsg
- The message to send.MessageFormatException
- When there is a problem with the message format,
e.g. phone number standard, length of message to send, invalid characters
in the message.public String getPhone()
public String getText()
public String toString()
toString
in class Object
Object.toString()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.