public class SMSMessage
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SMSMessage.MType |
Constructor and Description |
---|
SMSMessage(SMSMessage.MType eMessageType,
java.lang.String sUniqueId,
java.lang.String sCustomerAccount,
java.lang.String sMsisdnRecipient,
java.lang.String sMessageSubject,
java.lang.String sMessageText,
java.lang.String sCharacterEncoding,
java.util.Date dtMessageDate)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
customerAccount() |
java.util.Date |
dateStamp() |
java.lang.String |
messageId() |
java.lang.String |
msisdnNumber() |
SMSMessage.MType |
mType() |
java.lang.String |
subject() |
java.lang.String |
textBody() |
java.lang.String |
textEncoding() |
public SMSMessage(SMSMessage.MType eMessageType, java.lang.String sUniqueId, java.lang.String sCustomerAccount, java.lang.String sMsisdnRecipient, java.lang.String sMessageSubject, java.lang.String sMessageText, java.lang.String sCharacterEncoding, java.util.Date dtMessageDate) throws java.lang.StringIndexOutOfBoundsException
eMessageType
- MType SMS Message Type. It must be SMSMessage.MType.PLAIN_TEXT for standard SMSsUniqueId
- String Unique identifier of message (ony required for incoming message)sCustomerAccount
- String Unique identifier of customer account (for billing)sMsisdnRecipient
- String MSISDN Must be like +34609696969 plus sign and country code are mandatory, plus the digits of the phone number without any space nor other signs.sMessageSubject
- String Message Subject up to 40 characterssMessageText
- String Up to 160 characters for ISO-8859-1 encoding or less for other encodingssCharacterEncoding
- String Character encoding as defined at http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.htmldtMessageDate
- Optional Date when sent or received. If this parameter is null then the message will be sent as soon as posible.java.lang.StringIndexOutOfBoundsException
public java.lang.String messageId()
public SMSMessage.MType mType()
public java.lang.String customerAccount()
public java.lang.String msisdnNumber()
public java.lang.String subject()
public java.lang.String textBody()
public java.lang.String textEncoding()
public java.util.Date dateStamp()