Beispiel #1
0
        public RoutDialog(IRoutService routService) : base(nameof(RoutDialog))
        {
            this.routService = routService;
            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                RoutStepAsync,
                StopStepAsync,
                BusStepAsync
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
        public MainDialog(UserState userState, IRoutService routService, BusFinder busFinder, BlaBlaCarFinder blaBlaCarFinder)
            : base(nameof(MainDialog))
        {
            this.userState = userState;

            AddDialog(new TravelDialog(busFinder, blaBlaCarFinder));
            AddDialog(new RoutDialog(routService));
            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                InitialStepAsync
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }