Example #1
0
        private Task SpecialCommand(IDialogContext context)
        {
            // PromptDialog.Text(context, OnSpecialCommandProcessing, K.INT_SPECIAL_COMMAND);
            var sch = new Scheduling()
            {
                Speciality = "Cardiología",
                Patient    = new Patient()
                {
                    Name = "Pedrito"
                }
            };

            context.Call(new SchedulingDialog(ref sch), OnSpecialCommandProcessing2);
            return(Task.CompletedTask);
        }
Example #2
0
 public Task StartAsync(IDialogContext context)
 {
     _scheduling = new Scheduling();
     context.Wait(MessageReceivedAsync);
     return(Task.CompletedTask);
 }
Example #3
0
 public SchedulingDialog(ref Scheduling scheduling) => _scheduling = scheduling;