Beispiel #1
0
 private void Create(Message responce)
 {
     if (!Server.HasRoom(responce.message[0]))
     {
         ChatRoom chatroom = new ChatRoom(responce.message[0]);
         chatroom.AddUser(userName);
         Server.AddRoom(chatroom);
         IPC(Command.OK);
     }
     //Send error on existing chat room
     else
     {
         IPC(Command.Error);
     }
 }