Beispiel #1
0
        public static OpenData CreateOpenData()
        {
            var a = new OpenData();

            a.FillBaseData(ElephantCore.Instance.GetCurrentSession().GetSessionID());
            return(a);
        }
Beispiel #2
0
        private IEnumerator OpenRequest(bool isOldUser)
        {
            // initialized event
            if (onInitialized != null)
            {
                onInitialized();
            }


            currentSession = SessionData.CreateSessionData();
            SendVersionsEvent();

            var openData = OpenData.CreateOpenData();

            openData.is_old_user    = isOldUser;
            openData.gdpr_supported = gdprSupported;
            openData.session_id     = currentSession.GetSessionID();
            openData.idfv           = idfv;
            openData.idfa           = idfa;
            openData.user_id        = userId;

            var json     = JsonUtility.ToJson(openData);
            var bodyJson = JsonUtility.ToJson(new ElephantData(json, GetCurrentSession().GetSessionID()));

            yield return(PostWithResponse(OPEN_EP, bodyJson));
        }