public InitialServiceDialog(LuisSetup luisRecognizer, ILogger <InitialServiceDialog> logger, UserState userState, NIFPermissionDialog nIFPermission, IsNotClientDialog isNot, NoUnderstandDialog noUnderstand, GoodbyeDialog goodbye) : base(nameof(InitialServiceDialog)) { _recognizer = luisRecognizer; _userState = userState; Logger = logger; //AddDialog(new MainDialog()); AddDialog(new TextPrompt(nameof(TextPrompt))); AddDialog(new ChoicePrompt(nameof(ChoicePrompt))); AddDialog(nIFPermission); AddDialog(isNot); AddDialog(noUnderstand); AddDialog(goodbye); AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[] { AreYouClientAsync, IfIsAsync, IfIsRetryAsync, EndAsync, })); InitialDialogId = nameof(WaterfallDialog); }
public NIFPermissionDialog(LuisSetup luisRecognizer, ILogger <NIFPermissionDialog> logger, UserState userState, IsClientDialog isClient, NoUnderstandDialog noUnderstand, IsNotClientDialog isNotClient, GoodbyeDialog goodbye) : base(nameof(NIFPermissionDialog)) { _recognizer = luisRecognizer; _userState = userState; Logger = logger; AddDialog(new TextPrompt(nameof(TextPrompt))); AddDialog(new ChoicePrompt(nameof(ChoicePrompt))); AddDialog(isClient); AddDialog(noUnderstand); AddDialog(isNotClient); AddDialog(goodbye); AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[] { GiveNIFAsync, PermissionAsync, RetryPermissionAsync, EndAsync, })); InitialDialogId = nameof(WaterfallDialog); }