| | |
| | | if (instance == null) { |
| | | try { |
| | | var userConfigBytes = FileUtils.ReadFile ("OnAppConfig"); |
| | | var userConfigString = CommonPage.MyEncodingUTF8.GetString (userConfigBytes); |
| | | var userConfigString = System.Text.Encoding.UTF8.GetString (userConfigBytes); |
| | | OnAppConfig temp = null; |
| | | if (userConfigString != null) { |
| | | temp = Newtonsoft.Json.JsonConvert.DeserializeObject<OnAppConfig> (userConfigString); |
| | |
| | | |
| | | byte [] GetUserConfigBytes () |
| | | { |
| | | return CommonPage.MyEncodingUTF8.GetBytes (Newtonsoft.Json.JsonConvert.SerializeObject (this)); |
| | | return System.Text.Encoding.UTF8.GetBytes (Newtonsoft.Json.JsonConvert.SerializeObject (this)); |
| | | } |
| | | /// <summary> |
| | | /// 网络连接状态 |
| | | /// 0:无网络 |
| | | /// </summary> |
| | | public int internetStatus = 2; |
| | | |
| | | public void RefreshUserConfig () |
| | | { |
| | |
| | | /// 信息推送标记 |
| | | /// </summary> |
| | | public string PushDeviceToken; |
| | | /// <summary> |
| | | /// phoneName |
| | | /// </summary> |
| | | public string PhoneName; |
| | | /// <summary> |
| | | /// 添加推送Token成功时返回的Id |
| | | /// </summary> |
| | | public string PushId; |
| | | |
| | | public string SetLanguage = ""; |
| | | |