AnswerAction class
Action builder class designed to simplify building answer actions.
Constructors
| Answer |
Creates a new instance of the action builder. |
Methods
| accept |
The modality types the application will accept. If none are specified it assumes audio only. |
| to |
Returns the JSON object for the action. |
Constructor Details
AnswerAction(CallSession)
Creates a new instance of the action builder.
new AnswerAction(session?: CallSession)
Parameters
- session
- CallSession
Method Details
acceptModalityTypes(string[])
The modality types the application will accept. If none are specified it assumes audio only.
function acceptModalityTypes(types: string[])
Parameters
- types
-
string[]