public ChangeOrderDialog( ConversationState conversationState, IFragenZurWurstRecognizer recognizer, OrderingDialog orderingDialog) : base(nameof(ChangeOrderDialog), conversationState, recognizer) { this.conversationState = conversationState; this.recognizer = recognizer; this.orderingDialog = orderingDialog; AddDialog(new TextPrompt(nameof(TextPrompt))); AddDialog(orderingDialog); AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[] { AskForOrderChangeStepAsync, GetOrderChangeStepAsync })); InitialDialogId = nameof(WaterfallDialog); }
public MainDialog( ConversationState conversationState, IFragenZurWurstRecognizer recognizer, OrderingDialog orderingDialog) : base(nameof(MainDialog), conversationState, recognizer) { this.conversationState = conversationState; this.recognizer = recognizer; this.orderingDialog = orderingDialog; AddDialog(new TextPrompt(nameof(TextPrompt))); AddDialog(orderingDialog); AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[] { AskForInitialOrderStepAsync, ProceedWithOrderingStepAsync, ThankForTheOrderStepAsync })); InitialDialogId = nameof(WaterfallDialog); }