public DelayedShipmentDialog(IMyRpaClient myRpaClient, IStatePropertyAccessor <EntityState> entityStateAccessor) : base(nameof(DelayedShipmentDialog), entityStateAccessor) { var waterfallSteps = new WaterfallStep[] { GetCustomerIdStepAsync, ListItemsStepAsync, ProcessItemSelectionStepAsync, PlaceOrderStepAsync, }; AddDialog(new WaterfallDialog(GetWaterFallDialogId(nameof(DelayedShipmentDialog)), waterfallSteps)); AddDialog(new TextPrompt(nameof(GetCustomerIdStepAsync))); AddDialog(new ChoicePrompt(nameof(ListItemsStepAsync))); AddDialog(new ChoicePrompt(nameof(ProcessItemSelectionStepAsync))); AddDialog(new TextPrompt(nameof(PlaceOrderStepAsync))); _myRpaClient = myRpaClient; _entityStateAccessor = entityStateAccessor; }
public MyBot(BotServices services, UserState userState, ConversationState conversationState, IMyRpaClient rpaClient, ILoggerFactory loggerFactory) : base(services, userState, conversationState, new MyBotSettings(), new MyIntents(), loggerFactory) { // Must make sure all the dialogs add to dialog set here. _dialogSet.AddDialogToSet(new GreetingDialog()); _dialogSet.AddDialogToSet(new GetCustomerProfileDialog(_entityStateAccessor)); _dialogSet.AddDialogToSet(new DelayedShipmentDialog(rpaClient, _entityStateAccessor)); _dialogSet.AddDialogToSet(new ReplaceItemDialog(rpaClient, _entityStateAccessor)); _dialogSet.AddDialogToSet(new CannotFindOrderDialog()); }