// Use this for initialization void Start() { GetComponent <Text>().text = string.Format( "LANGUAGE ID: {0} \n" + "LANGUAGE: {1} \n " + "REGION: {2} \n " + "CURRENCY CODE: {3} \n " + "CURRENCY SYMBOL: {4}", PreciseLocale.GetLanguageID(), PreciseLocale.GetLanguage(), PreciseLocale.GetRegion(), PreciseLocale.GetCurrencyCode(), PreciseLocale.GetCurrencySymbol() ); }
public Inst Post(Uri url) { Debug.Log(string.Format("[{0}] POST : {1}", System.Reflection.MethodBase.GetCurrentMethod().Name, url.ToString())); var req = (System.Net.WebRequest.Create(url)) as HttpWebRequest; if (cert != null) { req.ClientCertificates.Add(cert); } req.Method = "POST"; req.Headers.Add(HttpRequestHeader.ContentLanguage, PreciseLocale.GetLanguage()); req.Headers.Add(HttpRequestHeader.ContentLocation, PreciseLocale.GetRegion()); return(new Inst(mShared, req)); }
public bool IsGDPR() { string region = PreciseLocale.GetRegion(); for (int i = 0; i < eu.Length; i++) { if (string.Equals(region, eu[i], StringComparison.OrdinalIgnoreCase)) { return(true); } } if (ELSingleton <ApplicationSettings> .Instance.deploymentEnvironment != 0) { return(true); } return(false); }
private void Start() { GetComponent <Text>().text = $"LANGUAGE ID: {PreciseLocale.GetLanguageID()} \nLANGUAGE: {PreciseLocale.GetLanguage()} \n REGION: {PreciseLocale.GetRegion()} \n CURRENCY CODE: {PreciseLocale.GetCurrencyCode()} \n CURRENCY SYMBOL: {PreciseLocale.GetCurrencySymbol()}"; }