Example #1
0
File: Chat.cs Project: tsviet/Chat
        private void ListUsers(Message responce)
        {
            if (Server.ServerExist())
            {
                List <string> res = new List <string>();

                foreach (var m in Server.GetCurrentChatRoom().GetUserList())
                {
                    res.Add(m);
                }
                IPC(Command.OK, res);
            }
            else
            {
                IPC(Command.Error);
            }
        }