public class TextMessage extends Message
Message.MessageClass, Message.MessageType| Constructor and Description |
|---|
TextMessage(java.lang.String from,
java.lang.String to,
java.lang.String messageBody)
Instantiate a new text-message request.
This message will be submitted as a regular 8 bit text message |
TextMessage(java.lang.String from,
java.lang.String to,
java.lang.String messageBody,
boolean unicode)
Instantiate a new text-message request.
This message will be submitted as a regular 8 bit text message |
| Modifier and Type | Method and Description |
|---|---|
void |
addParams(org.apache.http.client.methods.RequestBuilder request) |
java.lang.String |
getMessageBody() |
Message.MessageType |
getType() |
boolean |
isUnicode() |
getCallbackUrl, getClientReference, getFrom, getMessageClass, getStatusReportRequired, getTimeToLive, getTo, setCallbackUrl, setClientReference, setMessageClass, setStatusReportRequired, setTimeToLivepublic TextMessage(java.lang.String from, java.lang.String to, java.lang.String messageBody)
from - the 'from' address that will be seen on the handset when this message arrives,
typically either a valid short-code / long code that can be replied to, or a short text
description of the application sending the message (Max 11 chars)to - the phone number of the handset that you wish to send the message tomessageBody - The text of the message to be sent to the handsetpublic TextMessage(java.lang.String from, java.lang.String to, java.lang.String messageBody, boolean unicode)
from - the 'from' address that will be seen on the handset when this message arrives,
typically either a valid short-code / long code that can be replied to, or a short text
description of the application sending the message (Max 11 chars)to - the phone number of the handset that you wish to send the message tomessageBody - The text of the message to be sent to the handsetpublic java.lang.String getMessageBody()
public boolean isUnicode()
public Message.MessageType getType()