Example #1
0
        public void BasicCalculate_Handler(AerRecognitionResult result)
        {
            Calculator calculator = new Calculator();
            string     answer     = calculator.CalculationResult(result.Data);

            if (answer == null)
            {
                _Talk.RandomUnknownAck();
            }
            else
            {
                _Talk.Say(answer);
            }
        }
Example #2
0
 public void SystemInfo_Handler(AerRecognitionResult result)
 {
     if (result.System != null)
     {
         _Talk.SaySystem(result.System);
     }
     else
     {
         _Talk.RandomUnknownAck();
     }
 }