public override void Register(Collegue participant) { if (!_participants.ContainsValue(participant)) { _participants[participant.Name] = participant; } participant.Chatroom = this; }
public override void Send( string from, string to, string message) { Collegue participant = _participants[to]; if (participant != null) { participant.Receive(from, message); } }
public abstract void Register(Collegue participant);