示例#1
0
        public ROOM_SUMMARY_LIST AllRoomListDb(Int32 category, Int32 location_main, Int32 location_sub, int Skip)
        {
            IRoom proxy = factory.CreateChannel();

            RoomSearchKey search_key = new RoomSearchKey();
            search_key._category = category;
            search_key._location_main = location_main;
            search_key._location_sub = location_sub;

            ROOM_SUMMARY_LIST result = proxy.AllRoomListDb(search_key, null, Skip);
            (proxy as IDisposable).Dispose();

            return result;
        }
示例#2
0
        public Room(	String duration,
            RoomSearchKey search_key,
            String name,
            String comment,
            byte maxuser)
        {
            _userList = new NUser.List();
            _duration = duration;
            _name = name;
            _comment = comment;
            _maxuser = maxuser;
            _index = _indexer++;
            _search_key = new RoomSearchKey();
            _search_key = search_key;
            _instantChat = new List<ChatMessage>();
            _notice_group = new Dictionary<int, NNotice.Group>();

            _notice_group.Add(1, new NNotice.Group(1));
            _notice_group.Add(2, new NNotice.Group(2));
            _notice_group.Add(3, new NNotice.Group(3));
        }
示例#3
0
        public ROOM_RESULT CreateRoom(String user_no, Int32 category, Int32 location_main, Int32 location_sub, String name, String comment, String duration, int maxuser)
        {
            IRoom proxy = factory.CreateChannel();
            RoomSearchKey search_key = new RoomSearchKey();
            search_key._category = category;
            search_key._location_main = location_main;
            search_key._location_sub = location_sub;

            ROOM_RESULT result = proxy.CreateRoomDb(user_no, search_key, name, comment, duration, maxuser);
            (proxy as IDisposable).Dispose();

            if (result != null)
            {
                return result;
            }

            ROOM_RESULT resultError = new ROOM_RESULT();
            resultError.crud = "CR";
            resultError.reason_sort = -1;
            return resultError;
        }