botbuilder-dialogs-adaptive
Version:
Rule system for the Microsoft BotBuilder dialog system.
29 lines • 1.15 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OnHandoffActivity = void 0;
/**
* @module botbuilder-dialogs-adaptive
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
const botbuilder_1 = require("botbuilder");
const onActivity_1 = require("./onActivity");
/**
* Actions triggered when a HandoffActivity is received.
*/
class OnHandoffActivity extends onActivity_1.OnActivity {
/**
* Initializes a new instance of the [OnHandoffActivity](xref:botbuilder-dialogs-adaptive.OnHandoffActivity) 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(botbuilder_1.ActivityTypes.Handoff, actions, condition);
}
}
exports.OnHandoffActivity = OnHandoffActivity;
OnHandoffActivity.$kind = 'Microsoft.OnHandoffActivity';
//# sourceMappingURL=onHandoffActivity.js.map