コード例 #1
0
 public SelectionHospitalDialog(HospitalInfoRecognizer luisRecognizer, UserState userState, ProvinceSelectionDialog provinceSelectionDialog, CommuneSelectionDialog communeSelectionDialog, CategorieSelectionDialog categorieSelectionDialog, InfoCategorieDialog infoCategorieDialog)
     : base(luisRecognizer, nameof(SelectionHospitalDialog), infoCategorieDialog)
 {
     InitialDialogId = nameof(SelectionHospitalDialog);
     _userState      = userState;
     lesDonnees      = new DonneesExcel();
     lesHopitaux     = new List <Hopitaux>();
     AddDialog(provinceSelectionDialog);
     AddDialog(communeSelectionDialog);
     AddDialog(categorieSelectionDialog);
     AddDialog(new ChoicePrompt(DialogIds.CaracteristicOptionPrompt));
     AddDialog(new WaterfallDialog(InitialDialogId, new WaterfallStep[]
     {
         AnswerRequestAnalysisStep,
         SelectHospitalByCaracteristicsStep,
         ShowSelectionStep,
         EndSelectionStep,
     }));
 }
コード例 #2
0
        public HospitalCaracteristicsFindingDialog(InfoCategorieDialog infoCategorieDialog, HospitalInfoRecognizer luisRecognizer, UserState userState, SelectionHospitalDialog selectionHospitalDialog, ProvinceSelectionDialog provinceSelectionDialog, CommuneSelectionDialog communeSelectionDialog, CategorieSelectionDialog categorieSelectionDialog)
            : base(luisRecognizer, nameof(HospitalCaracteristicsFindingDialog), infoCategorieDialog)
        {
            InitialDialogId = nameof(HospitalCaracteristicsFindingDialog);
            _userState      = userState;
            lesDonnees      = new DonneesExcel();
            lesHopitaux     = new List <Hopitaux>();

            AddDialog(provinceSelectionDialog);
            AddDialog(communeSelectionDialog);
            AddDialog(categorieSelectionDialog);
            AddDialog(selectionHospitalDialog);
            AddDialog(new ChoicePrompt(DialogIds.CaracteristicOptionPrompt));
            AddDialog(new ChoicePrompt(DialogIds.SelectionContinue));
            AddDialog(new TextPrompt(DialogIds.HospitalPrompt, VerificationHospital));
            AddDialog(new WaterfallDialog(InitialDialogId, new WaterfallStep[]
            {
                InstroHospitalCaracteristicsFindingStep,
                AnswerRequestAnalysisStep,
                SelectionProcessStep,
                SelectionProcessConfirmStep,
                RepeatProcessStep,
                ShowResultStep,
            }));
        }