예제 #1
0
 public void ConnectToTerminal(Terminal terminal)
 {
     if (_portStatus == PortStatus.DisconnectedFromTerminal)
     {
         terminal.CallEvent           += CallConnectToATE;
         terminal.EndCallEvent        += EndCallConnectEvent;
         terminal.ResponseToCallEvent += ResponseToCall;
         terminal.GetRateInfoEvent    += GetRateInfoFromATE;
         terminal.ChangeRateEvent     += ChangeRateFromTerminal;
         terminal.ReiseBalanceEvent   += ReiseBalanceFromTerminal;
         terminal.GetCallInfoEvent    += GetCallInfoFromATE;
         _portStatus    = PortStatus.Available;
         ResponseStatus = AbonentStatus.Abandoned;
     }
 }
 public ResponseToCallEventArgs(AbonentStatus status)
 {
     Status = status;
 }
예제 #3
0
 protected virtual void OnResponseToCallEvent(AbonentStatus status)
 {
     ResponseToCallEvent?.Invoke(this, new ResponseToCallEventArgs(status));
 }
예제 #4
0
 private void ChangeResponse(AbonentStatus status)
 {
     ResponseStatus = status;
 }