Edit

Share via


AnswerAction class

Action builder class designed to simplify building answer actions.

Constructors

AnswerAction(CallSession)

Creates a new instance of the action builder.

Methods

acceptModalityTypes(string[])

The modality types the application will accept. If none are specified it assumes audio only.

toAction()

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[]

Returns

toAction()

Returns the JSON object for the action.

function toAction()

Returns