Ejemplo n.º 1
0
        public GetMaterialsDialog(CreatePostingDialog createPostingDialog)
            : base(nameof(GetMaterialsDialog))
        {
            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                WhatMaterialsAsync,
                ResolveMaterialsAsync
            }));
            AddDialog(new WaterfallDialog("WaterFall2", new WaterfallStep[]
            {
                WhereGetMaterialsAsync,
                ResolveGetMaterialsAsync
            }));
            AddDialog(createPostingDialog);
            AddDialog(new ChoicePrompt("ChoicesChoices"));
            AddDialog(new ConfirmPrompt(nameof(ConfirmPrompt)));

            // The initial child Dialog to run.
            InitialDialogId = nameof(WaterfallDialog);
        }
Ejemplo n.º 2
0
        public FixerDialog(FixItYourselfDialog fixItYourselfDialog, ResourceDialog resourceDialog, CreatePostingDialog createPostingDialog)
            : base(nameof(FixerDialog))
        {
            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                ItemStepAsync,
                ProblemStepAsync,
                WhoToFixStepAsync,
                ResolveWhoFixesAsync,
                RetryOrProgressAsync
            }));
            AddDialog(new ChoicePrompt(nameof(ChoicePrompt)));
            AddDialog(new ConfirmPrompt(nameof(ConfirmPrompt)));
            AddDialog(fixItYourselfDialog);
            AddDialog(resourceDialog);
            AddDialog(createPostingDialog);

            // The initial child Dialog to run.
            InitialDialogId = nameof(WaterfallDialog);
        }