public EchoDialog(ChatbotAccessors accessors, string dialogId) : base(dialogId) { Accessors = accessors; WaterfallStep[] steps = new WaterfallStep[] { EchoAsync }; AddDialog(new WaterfallDialog(WaterfallDialogName, steps)); }
public WelcomeDialog(ChatbotAccessors accessors, string dialogId) : base(dialogId) { Accessors = accessors; WaterfallStep[] steps = new WaterfallStep[] { PromptAsync, ReceiveResponseAsync }; AddDialog(new WaterfallDialog(WaterfallDialogName, steps)); AddDialog(new TextPrompt(TextPromptName)); }
public MainDialog(ConversationState conversationState, UserState userState) : base(nameof(MainDialog)) { ConversationState = conversationState; UserState = userState; Accessors = new ChatbotAccessors(conversationState: ConversationState as ConversationState, userState: UserState as UserState) { ConversationStateImplAccessor = ConversationState.CreateProperty <ConversationStateImpl> (ChatbotAccessors.ConversationStateImplName), UserStateImplAccessor = UserState.CreateProperty <UserStateImpl> (ChatbotAccessors.UserStateImplName) }; WaterfallStep[] steps = new WaterfallStep[] { RouteAsync, RefreshAsync }; AddDialog(new WaterfallDialog(WaterfallDialogName, steps)); AddDialog(new WelcomeDialog(Accessors, DialogTypes.Welcome.ToString())); AddDialog(new EchoDialog(Accessors, DialogTypes.Echo.ToString())); }