botbuilder-dialogs-adaptive
Version:
Rule system for the Microsoft BotBuilder dialog system.
22 lines • 978 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OnChooseProperty = void 0;
const adaptiveEvents_1 = require("../adaptiveEvents");
const onDialogEvent_1 = require("./onDialogEvent");
/**
* Triggered to choose which property an entity goes to.
*/
class OnChooseProperty extends onDialogEvent_1.OnDialogEvent {
/**
* Initializes a new instance of the [OnChooseProperty](xref:botbuilder-dialogs-adaptive.OnChooseProperty) class.
*
* @param {Dialog[]} actions Optional, actions to add to the plan when the rule constraints are met.
* @param {string} condition Optional, condition which needs to be met for the actions to be executed.
*/
constructor(actions = [], condition) {
super(adaptiveEvents_1.AdaptiveEvents.chooseProperty, actions, condition);
}
}
exports.OnChooseProperty = OnChooseProperty;
OnChooseProperty.$kind = 'Microsoft.OnChooseProperty';
//# sourceMappingURL=onChooseProperty.js.map