Beispiel #1
0
        private void m_RequestComleteCallBack(object sender, WebRequestArgsQy eventArgs)
        {
            DebugQy.Log("Request CallBack .");
            bool isMesRight = m_datahandle.WebDataHandle(eventArgs.Message, out m_masterMsg);

            if (isMesRight)
            {
                m_deviceId = m_masterMsg.deviceId;
                m_DataEventTrigger(DATA_STATUS_CODE.DATA_BUILD_ROOM_T,
                                   "Build room success.: your device:" + m_deviceId + "\n"
                                   + "RoomId : " + m_masterMsg.roomId + "\n"
                                   + "gameSign : " + m_masterMsg.gameSign);
                //主控回调数据正确,可触发成功事件
                StartSocketNetWork(m_masterMsg.WMIp, int.Parse(m_masterMsg.WMPort));
            }
            else
            {
                //主控回调数据错误,可触发失败事件
                m_DataEventTrigger(DATA_STATUS_CODE.DATA_BUILD_ROOM_F, "Build room failed : " + eventArgs.Message);
            }
        }
Beispiel #2
0
 private void m_RequestFailedCallBack(object sender, WebRequestArgsQy eventArgs)
 {
     m_LinkFailedEventTrigger((int)LINK_STATUS_CODE.REQUEST_F);
 }