UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

28 lines (25 loc) 992 B
/** * @module botbuilder-dialogs-adaptive */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Dialog } from 'botbuilder-dialogs'; import { OnDialogEvent } from './onDialogEvent'; import { AdaptiveEvents } from '../adaptiveEvents'; /** * Actions triggered when a dialog is started via BeginDialog(). */ export class OnBeginDialog extends OnDialogEvent { static $kind = 'Microsoft.OnBeginDialog'; /** * 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: Dialog[] = [], condition?: string) { super(AdaptiveEvents.beginDialog, actions, condition); } }