Пример #1
0
 public SalesOrderPostDialog(SalesDialogBotAccessors accessors, INavClient client, IChatter chatter)
 {
     Chatter        = chatter;
     Client         = client;
     Accessors      = accessors;
     WaterfallSteps = new WaterfallStep[]
     {
         ConfirmSalesOrderStepAsync,
         PostSalesOrderAndViewStepAsync
     };
     Prompts = new List <Dialog>
     {
         new ConfirmPrompt(ConfirmSalesOrderPrompt)
     };
 }
Пример #2
0
 public ViewOrdersDialog(SalesDialogBotAccessors accessors, INavClient client, IChatter chatter)
 {
     Chatter        = chatter;
     Client         = client;
     Accessors      = accessors;
     WaterfallSteps = new WaterfallStep[]
     {
         ChooseOrderStepAsync,
         ChooseActionStepAsync,
         ToActionStepAsync,
         AnotherActionStepAsync
     };
     Prompts = new List <Dialog>
     {
         new TextPrompt(OrdersPrompt, OrderNumberValidatorAsync),
         new ChoicePrompt(ActionPrompt),
         new ConfirmPrompt(OtherActionPrompt)
     };
 }
Пример #3
0
        public CustomerIdDialogWithVoiceRecognition(INavClient client, SalesDialogBotAccessors accessors,
                                                    IChatter chatter)
        {
            Chatter        = chatter;
            Client         = client;
            Accessors      = accessors;
            WaterfallSteps = new WaterfallStep[]
            {
                CustomerIdStepAsync,
                CustomerAuthenticationStepAsync,
                ConfirmProfileStepAsync,
                ToIntentionStepAsync
            };

            Prompts = new List <Dialog>
            {
                new TextPrompt(CustomerIdPrompt, CustomerIdValidatorAsync),
                new ConfirmPrompt(ConfirmIdPrompt)
            };
        }
Пример #4
0
 public ProductDialog(SalesDialogBotAccessors accessors, INavClient client, IChatter chatter)
 {
     Chatter        = chatter;
     Client         = client;
     Accessors      = accessors;
     WaterfallSteps = new WaterfallStep[]
     {
         ChooseItemCategoryStepAsync,
         ChooseItemStepAsync,
         ChooseQuantityStepAsync,
         ConfirmQuantityStepAsync,
         ToAnotherProductStepAsync
     };
     Prompts = new List <Dialog>
     {
         new ChoicePrompt(ItemCategoryPrompt, ItemCategoryChoiceValidatorAsync),
         new ChoicePrompt(ProductPrompt, ProductChoiceValidatorAsync),
         new ConfirmPrompt(ConfirmQuantityPrompt),
         new NumberPrompt <int>(QuantityPrompt, QuantityChoiceValidatorAsync)
     };
 }
Пример #5
0
        public CustomerIdDialog(INavClient client, SalesDialogBotAccessors accessors, IFaceRecognizer faceRecognizer,
                                IChatter chatter)
        {
            Chatter        = chatter;
            Client         = client;
            Accessors      = accessors;
            FaceRecognizer = faceRecognizer;
            WaterfallSteps = new WaterfallStep[]
            {
                CustomerIdStepAsync,
                CustomerAuthenticationStepAsync,
                ConfirmProfileStepAsync,
                ToIntentionStepAsync
            };

            Prompts = new List <Dialog>
            {
                new TextPrompt(CustomerIdPrompt, CustomerIdValidatorAsync),
                new ConfirmPrompt(ConfirmIdPrompt),
                new AttachmentPrompt(VerifyByPicturePromt, AuthenticationValidatorAsync)
            };
        }
Пример #6
0
 public StateHistoryNMAppIdle(INavClient aClient, int aStackCapacity)
     : base(aStackCapacity)
 {
     mClient = aClient;
     mWhileNavigate = false;
     Application.Idle +=new EventHandler(Application_Idle);
 }
Пример #7
0
 public StateHistoryNMAppIdle(INavClient aClient)
     : this(aClient, 32)
 {
 }