Exemplo n.º 1
0
        void SendResponsesAsTransaction()
        {
            var exitpollEvent = new CustomEvent("cvr.exitpoll");

            exitpollEvent.SetProperty("userId", CognitiveVR.Core.DeviceId);
            if (!string.IsNullOrEmpty(Core.ParticipantId))
            {
                exitpollEvent.SetProperty("participantId", CognitiveVR.Core.ParticipantId);
            }
            exitpollEvent.SetProperty("questionSetId", QuestionSetId);
            exitpollEvent.SetProperty("hook", myparameters.Hook);
            exitpollEvent.SetProperty("duration", Util.Timestamp() - StartTime);

            var scenesettings = Core.TrackingScene;

            if (scenesettings != null && !string.IsNullOrEmpty(scenesettings.SceneId))
            {
                exitpollEvent.SetProperty("sceneId", scenesettings.SceneId);
            }

            foreach (var property in transactionProperties)
            {
                exitpollEvent.SetProperty(property.Key, property.Value);
            }
            exitpollEvent.Send(CurrentExitPollPanel.transform.position);
            Core.InvokeSendDataEvent();
        }
Exemplo n.º 2
0
        void SendResponsesAsTransaction()
        {
            var exitpoll = new CustomEvent("cvr.exitpoll");

            exitpoll.SetProperty("userId", CognitiveVR.Core.UniqueID);
            exitpoll.SetProperty("questionSetId", QuestionSetId);
            exitpoll.SetProperty("hook", RequestQuestionHookName);

            var scenesettings = Core.TrackingScene;

            if (scenesettings != null && !string.IsNullOrEmpty(scenesettings.SceneId))
            {
                exitpoll.SetProperty("sceneId", scenesettings.SceneId);
            }

            foreach (var property in transactionProperties)
            {
                exitpoll.SetProperty(property.Key, property.Value);
            }
            exitpoll.Send(CurrentExitPollPanel.transform.position);
            Core.SendDataEvent();
        }