Home Reference Source
public class | source

Response

Direct Subclass:

VoiceResponse

Wrapper for custom message responses.

Constructor Summary

Public Constructor
public

constructor(executor: Function)

Constructor.

Member Summary

Private Members
private

The function handling the message response.

Method Summary

Public Methods
public

respond(): *

Executes the message response handler.

Public Constructors

public constructor(executor: Function) source

Constructor.

Params:

NameTypeAttributeDescription
executor Function

The function which will handle the message response.

Throw:

TypeError

Thrown if the given handler is not a function.

Private Members

private executor: Function source

The function handling the message response.

Public Methods

public respond(): * source

Executes the message response handler.

Return:

*

The returned value from the handler.