UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

22 lines 999 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OnBeginDialog = void 0; const onDialogEvent_1 = require("./onDialogEvent"); const adaptiveEvents_1 = require("../adaptiveEvents"); /** * Actions triggered when a dialog is started via BeginDialog(). */ class OnBeginDialog extends onDialogEvent_1.OnDialogEvent { /** * Initializes a new instance of the [OnBeginDialog](xref:botbuilder-dialogs-adaptive.OnBeginDialog) class. * * @param actions Optional. A [Dialog](xref:botbuilder-dialogs.Dialog) list containing the actions to add to the plan when the rule constraints are met. * @param condition Optional. Condition which needs to be met for the actions to be executed. */ constructor(actions = [], condition) { super(adaptiveEvents_1.AdaptiveEvents.beginDialog, actions, condition); } } exports.OnBeginDialog = OnBeginDialog; OnBeginDialog.$kind = 'Microsoft.OnBeginDialog'; //# sourceMappingURL=onBeginDialog.js.map