Class: ResponseManagerFactory

ResponseManagerFactory

new ResponseManagerFactory()

Static factory that can create ResponseManagers depending on the specific needs of the skill. This should never need to be called and is here as a placeholder.
Source:
See:

Methods

(static) createByDirectory(directory) → {ResponseManager}

Creates a ResponseManager that loads responses from a directory and uses the DefaultResponseManager and the BasicFormatterManager
Parameters:
Name Type Description
directory String The directory to read the responses from
Source:
See:
Returns:
The ResponseManager that will manage the responses
Type
ResponseManager

(static) createByFile(file) → {ResponseManager}

Creates a ResponseManager that loads responses from a file and uses the DefaultResponseManager and the BasicFormatterManager
Parameters:
Name Type Description
file String The file to read the responses from
Source:
See:
Returns:
The ResponseManager that will manage the responses
Type
ResponseManager

(static) createByMap(map) → {ResponseManager}

Creates a ResponseManager that loads responses from a map and uses the DefaultResponseManager and the BasicFormatterManager
Parameters:
Name Type Description
map String The map to use
Source:
See:
Returns:
The ResponseManager that will manage the responses
Type
ResponseManager

(static) createHandlebarEnabledByDirectory(directory) → {ResponseManager}

Creates a ResponseManager that loads responses from a directory and uses the DefaultResponseManager and the HandlebarsFormatterManager
Parameters:
Name Type Description
directory String The directory to read the responses from
Source:
See:
Returns:
The ResponseManager that will manage the responses
Type
ResponseManager

(static) createHandlebarEnabledByFile(file) → {ResponseManager}

Creates a ResponseManager that loads responses from a file and uses the DefaultResponseManager and the HandlebarsFormatterManager
Parameters:
Name Type Description
file String The file to read the responses from
Source:
See:
Returns:
The ResponseManager that will manage the responses
Type
ResponseManager

(static) createHandlebarEnabledByMap(map) → {ResponseManager}

Creates a ResponseManager that loads responses from a map and uses the DefaultResponseManager and the HandlebarsFormatterManager
Parameters:
Name Type Description
map String The map to use
Source:
See:
Returns:
The ResponseManager that will manage the responses
Type
ResponseManager