public class VoiceMessage extends Object implements MessageBase, Serializable
| Constructor and Description |
|---|
VoiceMessage(String body,
List<BigInteger> recipients) |
VoiceMessage(String body,
String recipients) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBody()
The body of the SMS message.
|
IfMachineType |
getIfMachine()
What to do when a machine picks up the phone? Possible values are:
- continue do not check, just play the message
- delay if a machine answers, wait until the machine stops talking
- hangup hangup when a machine answers
|
String |
getLanguage()
The language in which the message needs to be read to the recipient.
|
int |
getMachineTimeout()
The time (in milliseconds) to analyze if a machine has picked up the phone.
|
String |
getOriginator()
The originator (sender) of the message
|
String |
getRecipients()
The list of recipients msisdn's.
|
String |
getReference() |
Integer |
getRepeat()
How many times needs the message to be repeated?
|
Date |
getScheduledDatetime()
The scheduled date and time of the message
|
VoiceType |
getVoice()
The voice in which the messages needs to be read to the recipient.
|
void |
setIfMachine(IfMachineType ifMachine)
What to do when a machine picks up the phone? Possible values are:
- continue do not check, just play the message
- delay if a machine answers, wait until the machine stops talking
- hangup hangup when a machine answers
Default: continue (set by messagebird server if not send)
|
void |
setLanguage(String language)
The language in which the message needs to be read to the recipient.
|
void |
setMachineTimeout(int machineTimeout)
The time (in milliseconds) to analyze if a machine has picked up the phone.
|
void |
setOriginator(String originator)
Set the originator (sender) of the message
|
void |
setReference(String reference) |
void |
setRepeat(Integer repeat)
How many times needs the message to be repeated?
Default: 1 (set by messagebird server if not send)
|
void |
setScheduledDatetime(Date scheduledDatetime)
The scheduled date and time of the message.
|
void |
setVoice(VoiceType voice)
The voice in which the messages needs to be read to the recipient.
|
public VoiceMessage(String body, List<BigInteger> recipients)
public String getBody()
getBody in interface MessageBasepublic String getOriginator()
public void setOriginator(String originator)
public String getRecipients()
getRecipients in interface MessageBasepublic String getReference()
getReference in interface MessageBasepublic void setReference(String reference)
public String getLanguage()
public void setLanguage(String language)
language - Possible values are: nl-nl, de-de, en-gb, en-us, fr-fr.public VoiceType getVoice()
public void setVoice(VoiceType voice)
voice - Possible values are: male, female.public Integer getRepeat()
public void setRepeat(Integer repeat)
repeat - number of repetitions for the voice messagepublic IfMachineType getIfMachine()
public void setIfMachine(IfMachineType ifMachine)
ifMachine - public int getMachineTimeout()
public void setMachineTimeout(int machineTimeout)
machineTimeout - value of machine timeoutpublic Date getScheduledDatetime()
MessageBasegetScheduledDatetime in interface MessageBasepublic void setScheduledDatetime(Date scheduledDatetime)
scheduledDatetime - DateCopyright © 2024. All rights reserved.