public ModuleDialog(ConversationRecognizer luisRecognizer, ILogger <ModuleDialog> logger, LecturerDialog lecturerDialog, ExtracurricularDialog extracurricularDialog, EndConversationDialog endConversationDialog, CampusDialog campusDialog) : base(nameof(ModuleDialog)) { _luisRecognizer = luisRecognizer; Logger = logger; AddDialog(new TextPrompt(nameof(TextPrompt))); AddDialog(lecturerDialog); AddDialog(extracurricularDialog); AddDialog(endConversationDialog); AddDialog(campusDialog); AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[] { IntroStepAsync, NumberModulesStepAsync, FavModuleAsync, ExamorCaFavAsync, OpinionFavAsync, LeastFavModuleAsync, ExamorCaLeastAsync, OpinionLeastAsync, })); // The initial child Dialog to run. InitialDialogId = nameof(WaterfallDialog); }
// Extracurricular Dialog Class public ExtracurricularDialog(ConversationRecognizer luisRecognizer, ILogger <ExtracurricularDialog> logger, CampusDialog campusDialog) : base(nameof(ExtracurricularDialog)) { _luisRecognizer = luisRecognizer; Logger = logger; AddDialog(new TextPrompt(nameof(TextPrompt))); AddDialog(campusDialog); AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[] { IntroStepAsync, GetInfoAsync, MoveConvoAsync, CampusAsync, })); // The initial child Dialog to run. InitialDialogId = nameof(WaterfallDialog); }
// Dependency injection uses this constructor to instantiate MainDialog public MainDialog(ConversationRecognizer luisRecognizer, ExtracurricularDialog extracurricularDialog, CampusDialog campusDialog, ILogger <MainDialog> logger) : base(nameof(MainDialog)) { _luisRecognizer = luisRecognizer; Logger = logger; AddDialog(new TextPrompt(nameof(TextPrompt))); AddDialog(campusDialog); AddDialog(extracurricularDialog); AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[] { NameStepAsync, ActStepAsync, FinalStepAsync, })); // The initial child Dialog to run InitialDialogId = nameof(WaterfallDialog); }