public class Message extends VoiceXmlOutputTurn
Modifier and Type | Class and Description |
---|---|
static class |
Message.Builder
Builder used to ease the creation of instances of
Message . |
Constructor and Description |
---|
Message(String name,
AudioItem... audioItems) |
Message(String name,
List<AudioItem> audioItems) |
Modifier and Type | Method and Description |
---|---|
protected void |
addTurnProperties(javax.json.JsonObjectBuilder builder) |
boolean |
equals(Object obj) |
protected void |
fillVoiceXmlDocument(Document document,
Element formElement,
VoiceXmlDialogueContext dialogueContext) |
List<AudioItem> |
getAudioItems() |
Boolean |
getBargeIn() |
String |
getLanguage() |
protected String |
getOuputTurnType() |
int |
hashCode() |
void |
setBargeIn(Boolean bargeIn) |
void |
setLanguage(String language) |
addEventHandlerScript, addTopLevelProperties, createVoiceXmlDocument
addAdapter, asJson, getName, getVoiceXmlDocument, toString
public Message(String name, List<AudioItem> audioItems)
name
- The name of this turn. Not empty.audioItems
- The sequence of AudioItem
to play. Not empty.public final void setLanguage(String language)
language
- The language identifier (e.g. "en-US") for the message.
null
to use the VoiceXML platform defaultpublic final void setBargeIn(Boolean bargeIn)
bargeIn
- Boolean.TRUE
to enable barge-inBoolean.FALSE
to disable barge-innull
to use the VoiceXML platform
defaultpublic final List<AudioItem> getAudioItems()
public final String getLanguage()
public final Boolean getBargeIn()
protected final String getOuputTurnType()
getOuputTurnType
in class VoiceXmlOutputTurn
protected void addTurnProperties(javax.json.JsonObjectBuilder builder)
addTurnProperties
in class VoiceXmlDocumentTurn
protected void fillVoiceXmlDocument(Document document, Element formElement, VoiceXmlDialogueContext dialogueContext) throws VoiceXmlDocumentRenderingException
fillVoiceXmlDocument
in class VoiceXmlOutputTurn
VoiceXmlDocumentRenderingException
public int hashCode()
hashCode
in class VoiceXmlDocumentTurn
public boolean equals(Object obj)
equals
in class VoiceXmlDocumentTurn
Copyright © 2019 Nu Echo Inc..