Exemple #1
0
        public static void WorldUploaded(ApiModel model, bool isUpdate)
        {
            CheckInit();
            string value = (model == null) ? "null" : model.id;

            AnalyticsInterface.Send((!isUpdate) ? "SDK_CreateWorld" : "SDK_UpdateWorld", new Dictionary <string, object>
            {
                {
                    "modelId",
                    value
                }
            }, AnalyticsEventOptions.MarkOutOfSession);
        }
Exemple #2
0
        public static void LoggedInUserChanged(APIUser user)
        {
            string text = (user == null) ? string.Empty : user.id;

            if (!(text == _lastLoggedInUserId))
            {
                _lastLoggedInUserId = text;
                CheckInit();
                if (user != null)
                {
                    AnalyticsInterface.SetUserId(user.id);
                    AnalyticsInterface.SetUserProperties(null);
                    AnalyticsInterface.Send("SDK_LoginSuccess", null, AnalyticsEventOptions.MarkOutOfSession);
                }
                else
                {
                    AnalyticsInterface.SetUserId(null);
                    AnalyticsInterface.SetUserProperties(null);
                }
            }
        }