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; }
protected virtual void OnResponseToCallEvent(AbonentStatus status) { ResponseToCallEvent?.Invoke(this, new ResponseToCallEventArgs(status)); }
private void ChangeResponse(AbonentStatus status) { ResponseStatus = status; }