public void Detach(IBotObserver botObserver) { if (_observers.Contains(botObserver)) { _observers.Remove(botObserver); } }
public void Attach(IBotObserver botObserver) { if (_observers.Contains(botObserver) == false) { _observers.Add(botObserver); } }
public ObserverTestBot(string command, IBotObserver botObserver) { Command = command; _observers = new List <IBotObserver>(); this.Attach(botObserver); }
public void registerBotObserver(IBotObserver observer) { botObservers.Add(observer); }
public void Detach(IBotObserver botObserver) { _observers.Remove(botObserver); }