Exemplo n.º 1
0
        public static void TrackViewerLoaded(string userId, string sessionId = "")
        {
            var payload = new EventDataWithEmptyParams
            {
                eventName = "reflectViewerLoaded",
                userID    = userId,
                sessionID = sessionId
            };

            SendEvent(payload);
        }
        public static void TrackViewerLoaded(string userId, string sessionId = "")
        {
            var payload = new EventDataWithEmptyParams
            {
                eventName = "reflectViewerLoaded",
                userID    = userId,
                sessionID = sessionId,
                deviceUniqueIdentifier = SystemInfo.deviceUniqueIdentifier,
                cloudProvider          = LocaleUtils.GetProvider().ToString(),
                platform       = Application.platform.ToString(),
                viewerVersion  = Application.version,
                reflectVersion = Assembly.GetAssembly(typeof(UnityProject)).GetName().Version.ToString(),
            };

            SendEvent(payload);
        }
Exemplo n.º 3
0
        private static void SendEvent(EventDataWithEmptyParams body)
        {
            var json = JsonUtility.ToJson(body);

            SendEvent(json);
        }