Interface MessagesCommand
- All Superinterfaces:
SvamlCommand
Plays one or more messages on the call. Multiple messages in the array are played sequentially in
order.
This is a non-blocking command — the next command in the sequence executes immediately while
messages play in parallel. Playback outcomes are handled via the events property.
The onFinish event can be used to run a command after all messages complete.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MessagesCommand.Builderbuilder()Getting builderSVAML commands to execute based on message playback outcomes.Ordered list of messages to play.Name of the message for identification and reference within the call session.
-
Method Details
-
getMessagesName
String getMessagesName()Name of the message for identification and reference within the call session.This name is used to uniquely identify the message and must be unique within the current call session. This name can be referenced in other commands (e.g.,
stopMessages) to control this specific message.- Returns:
- messagesName
-
getMessages
Ordered list of messages to play.Field is required
- Returns:
- messages
-
getEvents
MessageEvents getEvents()SVAML commands to execute based on message playback outcomes.- Returns:
- events
-
builder
Getting builder- Returns:
- New Builder instance
-