Ejemplo n.º 1
0
        private void ResetSession()
        {
            // renew session id
            SessionId = Guid.NewGuid().ToString();

            // reset session length counter
            SessionLength = 0;

            VoodooLog.Log(TAG, "New session id: " + SessionId);
        }
Ejemplo n.º 2
0
        internal static void TrackEvent(string eventName)
        {
            if (!_isInitialized)
            {
                _eventsQueue.Enqueue(eventName);
                return;
            }

            VoodooLog.Log(TAG, "Sending event " + eventName + " to Tenjin");
            GetInstance().SendEvent(eventName);
        }
Ejemplo n.º 3
0
 internal static void LogBuildError(BuildErrorConfig.ErrorID errorID)
 {
     if (BuildErrorConfig.ErrorMessageDict.ContainsKey(errorID))
     {
         LogBuildError(
             errorID,
             BuildErrorConfig.ErrorMessageDict[errorID]);
     }
     else
     {
         VoodooLog.LogW(TAG, "Warning nonexistent ErrorID");
     }
 }
Ejemplo n.º 4
0
        internal static bool Initialize(bool consent)
        {
            if (!consent)
            {
                Disable();
                return(_isInitialized);
            }

            InstantiateGameAnalytics();
            VoodooLog.Log(TAG, "GameAnalytics initialized, tracking pending events: " + QueuedEvents.Count);
            while (QueuedEvents.Count > 0)
            {
                QueuedEvents.Dequeue().Track();
            }

            _isInitialized = true;
            return(_isInitialized);
        }
Ejemplo n.º 5
0
        internal static void TrackDesignEvent(string eventName, float?eventValue)
        {
            if (_isDisabled)
            {
                return;
            }

            var designEvent = new DesignEvent {
                eventName  = eventName,
                eventValue = eventValue
            };

            if (!_isInitialized)
            {
                VoodooLog.Log(TAG, "GameAnalytics NOT initialized queuing event..." + eventName);
                QueuedEvents.Enqueue(designEvent);
            }
            else
            {
                VoodooLog.Log(TAG, "Sending event " + eventName + " to GameAnalytics");
                designEvent.Track();
            }
        }
Ejemplo n.º 6
0
        internal static void TrackProgressEvent(GAProgressionStatus status, string progress, int?score)
        {
            if (_isDisabled)
            {
                return;
            }

            var progressEvent = new ProgressEvent {
                status   = status,
                progress = progress,
                score    = score
            };

            if (!_isInitialized)
            {
                VoodooLog.Log(TAG, "GameAnalytics NOT initialized queuing event..." + status);
                QueuedEvents.Enqueue(progressEvent);
            }
            else
            {
                VoodooLog.Log(TAG, "Sending event " + status + " to GameAnalytics");
                progressEvent.Track();
            }
        }
Ejemplo n.º 7
0
 public override void GetDeeplink(Tenjin.DeferredDeeplinkDelegate deferredDeeplinkDelegate)
 {
     VoodooLog.Log(TAG, "Sending DebugTenjin::GetDeeplink");
 }
Ejemplo n.º 8
0
 public override void Transaction(string productId, string currencyCode, int quantity, double unitPrice, string transactionId, string receipt, string signature)
 {
     VoodooLog.Log(TAG, "Transaction " + productId + ", " + currencyCode + ", " + quantity + ", " + unitPrice + ", " + transactionId + ", " + receipt + ", " + signature);
 }
Ejemplo n.º 9
0
 public override void SendEvent(string eventName, string eventValue)
 {
     VoodooLog.Log(TAG, "Sending Event " + eventName + " : " + eventValue);
 }
Ejemplo n.º 10
0
 public override void Init(string apiKey, string sharedSecret)
 {
     VoodooLog.Log(TAG, "Initializing with secret " + apiKey);
     ApiKey       = apiKey;
     SharedSecret = sharedSecret;
 }
Ejemplo n.º 11
0
 public override void Init(string apiKey)
 {
     VoodooLog.Log(TAG, "Initializing " + apiKey);
     ApiKey = apiKey;
 }
Ejemplo n.º 12
0
 public override void OptOutParams(List <string> parameters)
 {
     VoodooLog.Log(TAG, "OptOutParams");
 }
Ejemplo n.º 13
0
 private static void Disable()
 {
     VoodooLog.Log(TAG, "Disabling GameAnalytics No User Consent.");
     _isDisabled = true;
     QueuedEvents.Clear();
 }
Ejemplo n.º 14
0
 private void IncrementSessionCount()
 {
     SessionCount = PlayerPrefs.GetInt(PlayerPrefSessionCountKey, 0) + 1;
     PlayerPrefs.SetInt(PlayerPrefSessionCountKey, SessionCount);
     VoodooLog.Log(TAG, "Session count incremented to: " + SessionCount);
 }
Ejemplo n.º 15
0
 public override void OptIn()
 {
     VoodooLog.Log(TAG, "OptIn ");
 }
Ejemplo n.º 16
0
 public override void OptOut()
 {
     VoodooLog.Log(TAG, "OptOut ");
 }
Ejemplo n.º 17
0
 public override void Connect()
 {
     VoodooLog.Log(TAG, "Connecting " + ApiKey);
 }
Ejemplo n.º 18
0
 public override void AppendAppSubversion(int subversion)
 {
     VoodooLog.Log(TAG, "AppendAppSubversion: " + subversion);
 }
Ejemplo n.º 19
0
 public override void Connect(string deferredDeeplink)
 {
     VoodooLog.Log(TAG, "Connecting with deferredDeeplink " + deferredDeeplink);
 }