private void connectWatch(JoinWatchRoomRsp d) { BookInfo bookInfo = d.BookInfo; MVS.Host.HOST_WATCH_ADDR = MVS.getHotelUrl(bookInfo); MVS.WatchRoomID = d.RoomID; frameWatchCache = new Queue <LiveFrameDataNotify>(); _mWNw = new NW(MVS.Host.HOST_WATCH_ADDR, this); var buf = _mPro.en(SDKWatchCmdID.EnterLiveRoomCmdid, bookInfo, d.RoomID, MVS.UserID, MVS.GameID, MVS.NodeID); _mWNw?.send(buf); lastJoinWatchRoomRsp = d; }
private void connectHotel(JoinRoomRsp d) { BookInfo bookInfo = d.BookInfo; MVS.Host.HOST_HOTEL_ADDR = MVS.getHotelUrl(bookInfo); MVS.RoomID = d.RoomInfo.RoomID; this.frameCache = new Queue <FrameDataNotify>(); this._mHNw = new NW(MVS.Host.HOST_HOTEL_ADDR, this); var buf = _mPro.en(SDKHotelCmdID.CheckinCmdid, bookInfo, d.RoomInfo, MVS.UserID, MVS.GameID); this._mHNw?.send(buf); this.lastJoinRoomRsp = d; }