コード例 #1
0
        public async void RequestGetRoomList(String id)
        {
            Req0009 req = new Req0009()
            {
                UserID = id
            };
            Res0009 res = await GGTHubProxy.Invoke <Res0009>("RequestGetRoomList", req);

            Packet0009Received?.Invoke(this, new Packet0009ReceivedEventArgs(req, res));
        }
コード例 #2
0
        public Res0009 RequestGetRoomList(Req0009 req)
        {
            Res0009 res = null;
            IEnumerable <RoomInfo> RoomList = Singleton <DatabaseService> .Instance.GetRoomsInfo(out Boolean ex);

            if (ex)
            {
                res = new Res0009()
                {
                    Request = req, RoomList = null, Message = "DB조회에 오류가 있습니다"
                };
            }
            else
            {
                res = new Res0009()
                {
                    Request = req, RoomList = RoomList, Message = "조회 성공"
                };
            }
            return(res);
        }