public MainDialog(UserState userState, BotMLContext botmlContext) : base(nameof(MainDialog)) { _userstate = userState; AddDialog(new UserProfileDialog(botmlContext)); AddDialog(new WaterfallDialog(nameof(WaterfallStep), new WaterfallStep[] { InitialStepAsync, FinalStepAsync, })); InitialDialogId = nameof(WaterfallStep); }
public UserProfileDialog(BotMLContext BotmlContext) : base(nameof(UserProfileDialog)) { this.BotMlContext = BotmlContext; AddDialog(new TextPrompt("NamePrompt")); AddDialog(new NumberPrompt <float>("ExpYearsPrompt")); AddDialog(new NumberPrompt <float>("CatExpYearsPrompt")); AddDialog(new NumberPrompt <float>("CatPrompt")); AddDialog(new TextPrompt("LastEvalLtrPrompt")); AddDialog(new ConfirmPrompt("ConfirmPrompt")); AddDialog(new BotReviewDialog()); AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[] { NameStepAsync, ExpYearsStepAsync, CatExpYearsStepAsync, CatStepAsync, LastEvalLtrStepAsync, SummaryStepAsync })); InitialDialogId = nameof(WaterfallDialog); }