Exemplo n.º 1
0
 public void ClearAllCallback()
 {
     mGetServerDataFinishedCallback            = null;
     mGetLastLoginServerInfoFinishedCallback   = null;
     mGetAllRegionFinishedCallback             = null;
     mGetLatelyLoginServerListFinishedCallback = null;
     mGetAllRecommServerFinishedCallback       = null;
     mGetServerListFinishedCallback            = null;
     mGetServerStateFinishedCallback           = null;
 }
Exemplo n.º 2
0
        /// <summary>
        /// 获取推荐服务器列表
        /// </summary>
        public void GetAllRecommServer(GetAllRecommServerFinishedDelegate finishCallback)
        {
            GlobalConfig globalConfig = GlobalConfig.GetInstance();

            GlobalConfig.LoginInfoStruct loginInfo = globalConfig.LoginInfo;
            IBridge bridge = DBOSManager.getOSBridge();

            string url = globalConfig.CSURLV + "GetAllRecommServer?account=" + globalConfig.LoginInfo.AccName
                         + "&show_marked=" + globalConfig.ServerType
                         + "&game_mark=" + GlobalConfig.Instance.GameMark
                         + "&imei=" + bridge.getPhoneIMEI()
                         + "&device_mark=" + globalConfig.DeviceMark;

            if (Const.Region == RegionType.SEASIA)
            {
                url += "&lang=" + Const.LanguageName();
            }

            MainGame.HttpRequest.GET(url, OnGetAllRecommServerFinished, null);

            mGetAllRecommServerFinishedCallback = finishCallback;
        }