public class Message extends Object implements MessageBase, Serializable
| Constructor and Description |
|---|
Message(String originator,
String body,
List<BigInteger> recipients) |
Message(String originator,
String body,
String recipients) |
| Modifier and Type | Method and Description |
|---|---|
static Message |
createBinarySMS(String originator,
String header,
String body,
List<BigInteger> recipients)
Factory to create Binary SMS message
|
static Message |
createBinarySMS(String originator,
String header,
String body,
String recipients)
Factory to create Binary SMS message
|
String |
getBody()
The body of the SMS message.
|
DataCodingType |
getDatacoding()
The datacoding used, can be plain or unicode
|
Integer |
getGateway()
The configured SMS route that is used to send the message.
|
MClassType |
getMclass()
Indicated the message type.
|
String |
getOriginator()
The sender of the message.
|
String |
getRecipients()
The list of recipients msisdn's.
|
String |
getReference() |
URL |
getReportUrl() |
Date |
getScheduledDatetime()
The scheduled date and time of the message
|
MsgType |
getType()
The configured message type.
|
Map<String,Object> |
getTypeDetails()
An hash with extra information.
|
Integer |
getValidity()
The configured validity
The amount of seconds that the message is valid.
|
protected static String |
receipientsAsCommaSeperated(List<BigInteger> recipients)
generates a string from List
|
void |
setDatacoding(DataCodingType datacoding)
The datacoding used, can be plain or unicode
|
void |
setGateway(Integer gateway)
The SMS route that is used to send the message.
|
void |
setPremiumSMS(Object shortcode,
Object keyword,
Object tariff,
Object mid)
Setup premium SMS type
|
void |
setReference(String reference) |
void |
setReportUrl(URL reportUrl) |
void |
setScheduledDatetime(Date scheduledDatetime)
The scheduled date and time of the message.
|
void |
setType(MsgType type)
The type of message.
|
void |
setTypeDetails(Map<String,Object> typeDetails)
An hash with extra information.
|
void |
setValidity(Integer validity)
The amount of seconds that the message is valid.
|
String |
toString() |
public Message(String originator, String body, List<BigInteger> recipients)
public static Message createBinarySMS(String originator, String header, String body, String recipients)
originator - header - body - recipients - public static Message createBinarySMS(String originator, String header, String body, List<BigInteger> recipients)
originator - header - body - recipients - protected static String receipientsAsCommaSeperated(List<BigInteger> recipients)
recipients - public String getOriginator()
public String getBody()
MessageBasegetBody in interface MessageBasepublic String getRecipients()
MessageBasegetRecipients in interface MessageBasepublic MsgType getType()
public void setType(MsgType type)
type - Message Typepublic String getReference()
getReference in interface MessageBasepublic void setReference(String reference)
reference - The client referencepublic Integer getValidity()
public void setValidity(Integer validity)
validity - public Integer getGateway()
public void setGateway(Integer gateway)
gateway - public Map<String,Object> getTypeDetails()
public void setTypeDetails(Map<String,Object> typeDetails)
public DataCodingType getDatacoding()
public void setDatacoding(DataCodingType datacoding)
datacoding - public MClassType getMclass()
public Date getScheduledDatetime()
MessageBasegetScheduledDatetime in interface MessageBasepublic void setScheduledDatetime(Date scheduledDatetime)
scheduledDatetime - public void setPremiumSMS(Object shortcode, Object keyword, Object tariff, Object mid)
shortcode - keyword - tariff - mid - public URL getReportUrl()
public void setReportUrl(URL reportUrl)
Copyright © 2024. All rights reserved.