예제 #1
0
        public IEnumerable <UserWords> GetChat(string room_name)
        {
            string canonical_room_name = RoomNameGuard.CheckName(room_name);

            //return ChatManager.Get(room);
            return(ChatPond.Get(canonical_room_name));
        }
예제 #2
0
        public void UpdateStatus2(string user_id, string name, string status, string room_name)
        {
            string canonical_room_name = RoomNameGuard.CheckName(room_name);

            if (name != null && status != null)
            {
                if (name.Length <= 20 && status.Length <= 100)
                {
                    //ChatManager.Add(name, status);
                    ChatPond.AddChat(canonical_room_name, name, status);

                    UserCenter.UpdateStatus(canonical_room_name, user_id, name, status);
                }
            }
        }