Beispiel #1
0
        public static void TrackViewerOpenProject(string userId, string projectId, string sessionId = "")
        {
            var payload = new EventDataWithProjectID
            {
                eventName   = "reflectViewerOpenProject",
                userID      = userId,
                sessionID   = sessionId,
                eventParams = new EventParamProjectID
                {
                    projectID = projectId
                }
            };

            SendEvent(payload);
        }
        public static void TrackViewerOpenProject(string userId, string projectId, string sessionId = "")
        {
            var payload = new EventDataWithProjectID
            {
                eventName = "reflectViewerOpenProject",
                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(),
                eventParams    = new EventParamProjectID
                {
                    projectID = projectId
                }
            };

            SendEvent(payload);
        }
Beispiel #3
0
        private static void SendEvent(EventDataWithProjectID body)
        {
            var json = JsonUtility.ToJson(body);

            SendEvent(json);
        }