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); }
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); }