UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

29 lines 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OnEventActivity = 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 an EventActivity is received. */ class OnEventActivity extends onActivity_1.OnActivity { /** * Initializes a new instance of the [OnEventActivity](xref:botbuilder-dialogs-adaptive.OnEventActivity) 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.Event, actions, condition); } } exports.OnEventActivity = OnEventActivity; OnEventActivity.$kind = 'Microsoft.OnEventActivity'; //# sourceMappingURL=onEventActivity.js.map