Beispiel #1
0
        public static AnalyticsResult ItemSpent(AcquisitionType currencyType, string transactionContext, float amount, string itemId, float balance, string itemType = null, string level = null, string transactionId = null, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameItemSpent, eventData
                        .Copy()
                        .SafeAdd(EventColumnMonetizationCurrencyType, AnalyticsEnums.Get(currencyType))
                        .SafeAdd(EventColumnMonetizationTransactionContext, transactionContext)
                        .SafeAdd(EventColumnMonetizationAmount, amount)
                        .SafeAdd(EventColumnMonetizationItemId, itemId)
                        .SafeAddIf(EventColumnMonetizationBalance, balance, balance != float.MinValue)
                        .SafeAdd(EventColumnMonetizationItemType, itemType)
                        .SafeAdd(EventColumnMonetizationLevel, level)
                        .SafeAdd(EventColumnMonetizationTransactionId, transactionId));

            #if UNITY_ANALYTICS_SUPPORTED
            if (balance == float.MinValue)
            {
                return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.ItemSpent(AnalyticsEnums.Convert(currencyType), transactionContext, amount, itemId, itemType, level, transactionId, eventData)));
            }
            else
            {
                return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.ItemSpent(AnalyticsEnums.Convert(currencyType), transactionContext, amount, itemId, balance, itemType, level, transactionId, eventData)));
            }
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #2
0
        public static AnalyticsResult PushNotificationEnable(IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNamePushNotificationEnable, eventData);

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.PushNotificationEnable(eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #3
0
        public static AnalyticsResult ChatMessageSent(IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameChatMessageSent, eventData);

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.ChatMessageSent(eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #4
0
        public static AnalyticsResult LevelUp(int index, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameLevelUp, eventData
                        .Copy()
                        .SafeAdd(EventColumnNewLevelIndex, index));

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.LevelUp(index, eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #5
0
        public static AnalyticsResult LevelComplete(string name, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameLevelComplete, eventData
                        .Copy()
                        .SafeAdd(EventColumnLevelName, name));

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.LevelComplete(name, eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #6
0
        public static AnalyticsResult FirstInteraction(string actionId = null, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameFirstInteraction, eventData
                        .Copy()
                        .SafeAdd(EventColumnActionId, actionId));

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.FirstInteraction(actionId, eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #7
0
        public static AnalyticsResult PushNotificationClick(string message_id, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNamePushNotificationClick, eventData
                        .Copy()
                        .SafeAdd(EventColumnPushNotificationMessageId, message_id));

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.PushNotificationClick(message_id, eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #8
0
        public static AnalyticsResult UserSignup(string authorizationNetwork, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameUserSignup, eventData
                        .Copy()
                        .SafeAdd(EventColumnSocialAuthorizationNetwork, authorizationNetwork));

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.UserSignup(authorizationNetwork, eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #9
0
        public static AnalyticsResult StoreOpened(StoreType storeType, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameStoreOpened, eventData
                        .Copy()
                        .SafeAdd(EventColumnMonetizationStoreType, AnalyticsEnums.Get(storeType)));

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.StoreOpened(AnalyticsEnums.Convert(storeType), eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #10
0
        public static AnalyticsResult AchievementUnlocked(string achievementId, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameAchievementUnlocked, eventData
                        .Copy()
                        .SafeAdd(EventColumnAchievementId, achievementId));

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.AchievementUnlocked(achievementId, eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #11
0
        public static AnalyticsResult TutorialStart(string tutorialId = null, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameTutorialStart, eventData
                        .Copy()
                        .SafeAdd(EventColumnTutorialId, tutorialId));

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.TutorialStart(tutorialId, eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #12
0
        public static AnalyticsResult ScreenVisit(string screenName, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameScreenVisit, eventData
                        .Copy()
                        .SafeAdd(EventColumnScreenName, screenName));

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.ScreenVisit(screenName, eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #13
0
        public static AnalyticsResult PostAdAction(bool rewarded, string network = null, string placementId = null, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNamePostAdAction, eventData
                        .Copy()
                        .SafeAdd(EventColumnAdRewarded, rewarded)
                        .SafeAdd(EventColumnAdNetwork, network)
                        .SafeAdd(EventColumnAdPlacementId, placementId));

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.PostAdAction(rewarded, network, placementId, eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #14
0
        public static AnalyticsResult SocialShareAccept(string shareType, string socialNetwork, string senderId = null, string recipientId = null, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameSocialShareAccept, eventData
                        .Copy()
                        .SafeAdd(EventColumnSocialShareType, shareType)
                        .SafeAdd(EventColumnSocialNetwork, socialNetwork)
                        .SafeAdd(EventColumnSocialSenderId, senderId)
                        .SafeAdd(EventColumnSocialRecipientId, recipientId));

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.SocialShareAccept(shareType, socialNetwork, senderId, recipientId, eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #15
0
        public static AnalyticsResult IAPTransaction(string transactionContext, float price, string itemId, string itemType = null, string level = null, string transactionId = null, IDictionary <string, object> eventData = null)
        {
            CustomEvent(EventNameIapTransaction, eventData
                        .Copy()
                        .SafeAdd(EventColumnMonetizationTransactionContext, transactionContext)
                        .SafeAdd(EventColumnMonetizationPrice, price)
                        .SafeAdd(EventColumnMonetizationItemId, itemId)
                        .SafeAdd(EventColumnMonetizationItemType, itemType)
                        .SafeAdd(EventColumnMonetizationLevel, level)
                        .SafeAdd(EventColumnMonetizationTransactionId, transactionId));

            #if UNITY_ANALYTICS_SUPPORTED
            return(AnalyticsEnums.Convert(UnityEngine.Analytics.AnalyticsEvent.IAPTransaction(transactionContext, price, itemId, itemType, level, transactionId, eventData)));
            #else
            return(GetNoUnityAnalyitcsDefineResult());
            #endif
        }
Beispiel #16
0
 public static AnalyticsResult UserSignup(AuthorizationNetwork authorizationNetwork, IDictionary <string, object> eventData = null)
 {
     return(UserSignup(AnalyticsEnums.Get(authorizationNetwork), eventData));
 }
Beispiel #17
0
 public static AnalyticsResult SocialShareAccept(ShareType shareType, string socialNetwork, string senderId = null, string recipientId = null, IDictionary <string, object> eventData = null)
 {
     return(SocialShareAccept(AnalyticsEnums.Get(shareType), socialNetwork, senderId, recipientId, eventData));
 }
Beispiel #18
0
 public static AnalyticsResult ScreenVisit(ScreenName screenName, IDictionary <string, object> eventData = null)
 {
     return(ScreenVisit(AnalyticsEnums.Get(screenName), eventData));
 }
Beispiel #19
0
 public static AnalyticsResult PostAdAction(bool rewarded, AdvertisingNetwork network, string placementId = null, IDictionary <string, object> eventData = null)
 {
     return(PostAdAction(rewarded, AnalyticsEnums.Get(network), placementId, eventData));
 }