public override void Register(Abstract_Participant participant) { if (!_participants.ContainsValue(participant)) { _participants[participant.Name] = participant; } participant.Chatroom = this; }
public override void Send(string from, string to, string message) { Abstract_Participant participant = _participants[to]; if (participant != null) { participant.Receive(from, message); } }
//Abstractions for the Participants in a Chat Room Story public abstract void Register(Abstract_Participant participant);