Esempio n. 1
0
File: Chat.cs Progetto: tsviet/Chat
 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);
     }
 }