示例#1
0
        private Dictionary <string, string> SetHeaderCommon(string authorization)
        {
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary.Add("Authorization", authorization);
            if (this.guid != null || this.guid.Length != 0)
            {
                dictionary.Add("x-guid", this.guid);
            }
            if (this.uuid != null || this.uuid.Length != 0)
            {
                dictionary["x-uuid"] = this.uuid;
            }
            if (this.adid != null || this.adid.Length != 0)
            {
                dictionary["x-adid"] = this.adid;
            }
            if (this.countryCode != null || this.countryCode.Length != 0)
            {
                dictionary.Add("country-code", this.countryCode);
            }
            dictionary.Add("x-device", SystemInfo.deviceModel);
            dictionary.Add("x-osver", NpDeviceInfo.GetOSVersion());
            dictionary.Add("x-ostype", this.OS_TYPE_ANDROID);
            return(dictionary);
        }
示例#2
0
 public IEnumerator StartGameLogin()
 {
     APIUtil.< StartGameLogin > c__AnonStorey9 <StartGameLogin> c__AnonStorey = new APIUtil.< StartGameLogin > c__AnonStorey9();
     APIUtil.< StartGameLogin > c__AnonStorey9 <StartGameLogin> c__AnonStorey2 = < StartGameLogin > c__AnonStorey;
     GameWebAPI.RequestCM_Login requestCM_Login = new GameWebAPI.RequestCM_Login();
     requestCM_Login.SetSendData = delegate(GameWebAPI.RequestCM_LoginRequest param)
     {
         param.osType     = "2";
         param.modelName  = SystemInfo.deviceModel;
         param.osVersion  = NpDeviceInfo.GetOSVersion();
         param.appVersion = WebAPIPlatformValue.GetAppVersion();
     };
     requestCM_Login.OnReceived = new Action <GameWebAPI.RespDataCM_Login>(this.OnRecievedLogin);