public override void Register(Participant participant) { if (!_participants.ContainsValue(participant)) { _participants[participant.Name] = participant; } participant.Chatroom = this; }
public abstract void Register(Participant participant);
public void SignOn(Participant participant) { _groupParticipants.Add(participant); }
public void SendMessage(Participant user, string message) { Console.WriteLine(user.name + ": " + message); }