コード例 #1
0
 public void ChangeInputSettings(PhoneInputHandlerSettings settings)
 {
     _settings = settings;
     MaxDigitTimeoutInSeconds = _settings.MaxDigitTimeoutInSeconds;
     SetTimerInterval();
     NumberOfDigitsToWaitForNextStep = _settings.NumberOfDigitsToWaitForNextStep;
     TerminationDigit = _settings.TerminationDigit;
 }
コード例 #2
0
 public AsteriskPhoneInputHandler(ICall call, IPromptPlayer promptPlayer)
 {
     _call                           = call;
     _promptPlayer                   = promptPlayer;
     _settings                       = new PhoneInputHandlerSettings();
     DigitsReceived                  = "";
     DigitTimeoutTimer               = new Timer();
     DigitTimeoutTimer.Elapsed      += DigitTimeoutEvent;
     MaxDigitTimeoutInSeconds        = 0;
     NumberOfDigitsToWaitForNextStep = 0;
     TerminationDigit                = "#";
 }
コード例 #3
0
 public void ChangeInputSettings(PhoneInputHandlerSettings settings)
 {
     if (_settings != null)
     {
         _settings = settings;
         MaxDigitTimeoutInSeconds = _settings.MaxDigitTimeoutInSeconds;
         SetValueAs = _settings.SetValueAs;
         SetTimerInterval();
         NumberOfDigitsToWaitForNextStep = _settings.NumberOfDigitsToWaitForNextStep;
         TerminationDigit = _settings.TerminationDigit;
         Direction        = _settings.Direction;
     }
     else
     {
         NumberOfDigitsToWaitForNextStep = -1;
         TerminationDigit                = "D";
         Direction                       = Direction.Both;
         _settings.SetValueAs            = "";
         _settings.SetValueAsDestination = false;
         _settings.Options               = new Dictionary <string, int>();
     }
 }