Пример #1
0
        public override System.Collections.Generic.IEnumerator <byte> SendBugReport(string text, string customParameter)
        {
            var to = new BugReportTO()
            {
                uid = User.instance.id, uid2 = User.instance.id2, text = text, version = customParameter, device = SystemInfo.deviceModel, os = SystemInfo.operatingSystem
            };

            var json = SerializeT(to);

            StartCoroutine(netHttp.JsonPost(host, "/v/bugReport", json, response => {
                // ignore
            }, errorText => { // Transport errors
                Debug.Log("StatHttp error: " + errorText);
            }));

            yield return(0);
        }
Пример #2
0
        public override System.Collections.Generic.IEnumerator <byte> SendLoadingProgress(string text, string date, string customParameter)
        {
            var to = new BugReportTO()
            {
                uid = User.instance.id, uid2 = User.instance.id2, text = text, dt = date, version = customParameter, device = SystemInfo.deviceModel, os = SystemInfo.operatingSystem
            };

            var json = SerializeT(to);

            StartCoroutine(netHttp.JsonPost(host, "/v/loadingProgress", json, response => {
                // ignore
            }, errorText => { // Transport errors
                if (UnityEngine.UI.Windows.Constants.LOGS_ENABLED == true)
                {
                    UnityEngine.Debug.Log("StatHttp error: " + errorText);
                }
            }));

            yield return(0);
        }