Beispiel #1
0
 public override void Send(string message, AbstractChatMember sender)
 {
     foreach (AbstractChatMember chatMember in ActiveChatMembers)
     {
         if (chatMember != sender)
         {
             chatMember.Receive(message);
         }
     }
 }
Beispiel #2
0
 public override void Unregister(AbstractChatMember member)
 {
     Console.WriteLine($"{member.Name} has left the room");
     ActiveChatMembers.Remove(member);
 }
Beispiel #3
0
 public abstract void Unregister(AbstractChatMember member);
Beispiel #4
0
 // TODO
 public override void Register(AbstractChatMember member)
 {
     Console.WriteLine($"{member.Name} is joining the room");
     ActiveChatMembers.Add(member);
 }
Beispiel #5
0
 public abstract void Send(string message, AbstractChatMember sender);