Example #1
0
        public bool TryCreateRoom(string name, string password)
        {
            if (this.roomBase.ContainsKey(name))
            {
                return(false);
            }

            var newrp = new RoomParams {
                Password = password
            };

            this.roomBase.Add(name, newrp);
            return(true);
        }
Example #2
0
        public bool TryCreateRoom(string name, string password)
        {
            if (this.roomBase.ContainsKey(name))
            {
                return false;
            }

            var newrp = new RoomParams { Password = password };
            this.roomBase.Add(name, newrp);
            return true;
        }