Esempio n. 1
0
        public static void Start(AdjustConfig adjustConfig)
        {
            string appToken                              = adjustConfig.appToken != null ? adjustConfig.appToken : "ADJ_INVALID";
            string sceneName                             = adjustConfig.sceneName != null ? adjustConfig.sceneName : "ADJ_INVALID";
            string userAgent                             = adjustConfig.userAgent != null ? adjustConfig.userAgent : "ADJ_INVALID";
            string defaultTracker                        = adjustConfig.defaultTracker != null ? adjustConfig.defaultTracker : "ADJ_INVALID";
            string externalDeviceId                      = adjustConfig.externalDeviceId != null ? adjustConfig.externalDeviceId : "ADJ_INVALID";
            string environment                           = adjustConfig.environment.ToLowercaseString();
            long   info1                                 = AdjustUtils.ConvertLong(adjustConfig.info1);
            long   info2                                 = AdjustUtils.ConvertLong(adjustConfig.info2);
            long   info3                                 = AdjustUtils.ConvertLong(adjustConfig.info3);
            long   info4                                 = AdjustUtils.ConvertLong(adjustConfig.info4);
            long   secretId                              = AdjustUtils.ConvertLong(adjustConfig.secretId);
            double delayStart                            = AdjustUtils.ConvertDouble(adjustConfig.delayStart);
            int    logLevel                              = AdjustUtils.ConvertLogLevel(adjustConfig.logLevel);
            int    isDeviceKnown                         = AdjustUtils.ConvertBool(adjustConfig.isDeviceKnown);
            int    sendInBackground                      = AdjustUtils.ConvertBool(adjustConfig.sendInBackground);
            int    eventBufferingEnabled                 = AdjustUtils.ConvertBool(adjustConfig.eventBufferingEnabled);
            int    allowiAdInfoReading                   = AdjustUtils.ConvertBool(adjustConfig.allowiAdInfoReading);
            int    allowIdfaReading                      = AdjustUtils.ConvertBool(adjustConfig.allowIdfaReading);
            int    allowSuppressLogLevel                 = AdjustUtils.ConvertBool(adjustConfig.allowSuppressLogLevel);
            int    launchDeferredDeeplink                = AdjustUtils.ConvertBool(adjustConfig.launchDeferredDeeplink);
            int    isAttributionCallbackImplemented      = AdjustUtils.ConvertBool(adjustConfig.getAttributionChangedDelegate() != null);
            int    isEventSuccessCallbackImplemented     = AdjustUtils.ConvertBool(adjustConfig.getEventSuccessDelegate() != null);
            int    isEventFailureCallbackImplemented     = AdjustUtils.ConvertBool(adjustConfig.getEventFailureDelegate() != null);
            int    isSessionSuccessCallbackImplemented   = AdjustUtils.ConvertBool(adjustConfig.getSessionSuccessDelegate() != null);
            int    isSessionFailureCallbackImplemented   = AdjustUtils.ConvertBool(adjustConfig.getSessionFailureDelegate() != null);
            int    isDeferredDeeplinkCallbackImplemented = AdjustUtils.ConvertBool(adjustConfig.getDeferredDeeplinkDelegate() != null);

            _AdjustLaunchApp(
                appToken,
                environment,
                sdkPrefix,
                userAgent,
                defaultTracker,
                externalDeviceId,
                sceneName,
                allowSuppressLogLevel,
                logLevel,
                isDeviceKnown,
                eventBufferingEnabled,
                sendInBackground,
                allowiAdInfoReading,
                allowIdfaReading,
                secretId,
                info1,
                info2,
                info3,
                info4,
                delayStart,
                launchDeferredDeeplink,
                isAttributionCallbackImplemented,
                isEventSuccessCallbackImplemented,
                isEventFailureCallbackImplemented,
                isSessionSuccessCallbackImplemented,
                isSessionFailureCallbackImplemented,
                isDeferredDeeplinkCallbackImplemented);
        }
Esempio n. 2
0
        public static void TrackEvent(AdjustEvent adjustEvent)
        {
            int    isReceiptSet  = AdjustUtils.ConvertBool(adjustEvent.isReceiptSet);
            double revenue       = AdjustUtils.ConvertDouble(adjustEvent.revenue);
            string eventToken    = adjustEvent.eventToken;
            string currency      = adjustEvent.currency;
            string receipt       = adjustEvent.receipt;
            string transactionId = adjustEvent.transactionId;
            string stringJsonCallBackParameters = AdjustUtils.ConvertListToJson(adjustEvent.callbackList);
            string stringJsonPartnerParameters  = AdjustUtils.ConvertListToJson(adjustEvent.partnerList);

            _AdjustTrackEvent(eventToken, revenue, currency, receipt, transactionId, isReceiptSet, stringJsonCallBackParameters, stringJsonPartnerParameters);
        }
Esempio n. 3
0
        public void start(AdjustConfig adjustConfig)
        {
            string appToken    = adjustConfig.appToken;
            string sceneName   = adjustConfig.sceneName;
            string userAgent   = adjustConfig.userAgent != null ? adjustConfig.userAgent : String.Empty;
            string environment = adjustConfig.environment.lowercaseToString();

            double delayStart = AdjustUtils.ConvertDouble(adjustConfig.delayStart);

            int logLevel               = AdjustUtils.ConvertLogLevel(adjustConfig.logLevel);
            int sendInBackground       = AdjustUtils.ConvertBool(adjustConfig.sendInBackground);
            int eventBufferingEnabled  = AdjustUtils.ConvertBool(adjustConfig.eventBufferingEnabled);
            int allowSuppressLogLevel  = AdjustUtils.ConvertBool(adjustConfig.allowSuppressLogLevel);
            int launchDeferredDeeplink = AdjustUtils.ConvertBool(adjustConfig.launchDeferredDeeplink);

            _AdjustLaunchApp(appToken, environment, sdkPrefix, allowSuppressLogLevel, logLevel, eventBufferingEnabled, sendInBackground, delayStart, userAgent, launchDeferredDeeplink, sceneName);
        }
Esempio n. 4
0
        public void start(AdjustConfig adjustConfig)
        {
            string appToken    = adjustConfig.appToken;
            string sceneName   = adjustConfig.sceneName;
            string userAgent   = adjustConfig.userAgent != null ? adjustConfig.userAgent : String.Empty;
            string environment = adjustConfig.environment.lowercaseToString();

            double delayStart = AdjustUtils.ConvertDouble(adjustConfig.delayStart);

            int logLevel               = AdjustUtils.ConvertLogLevel(adjustConfig.logLevel);
            int sendInBackground       = AdjustUtils.ConvertBool(adjustConfig.sendInBackground);
            int eventBufferingEnabled  = AdjustUtils.ConvertBool(adjustConfig.eventBufferingEnabled);
            int allowSuppressLogLevel  = AdjustUtils.ConvertBool(adjustConfig.allowSuppressLogLevel);
            int launchDeferredDeeplink = AdjustUtils.ConvertBool(adjustConfig.launchDeferredDeeplink);

            int isAttributionCallbackImplemented      = AdjustUtils.ConvertBool(adjustConfig.getAttributionChangedDelegate() != null);
            int isEventSuccessCallbackImplemented     = AdjustUtils.ConvertBool(adjustConfig.getEventSuccessDelegate() != null);
            int isEventFailureCallbackImplemented     = AdjustUtils.ConvertBool(adjustConfig.getEventFailureDelegate() != null);
            int isSessionSuccessCallbackImplemented   = AdjustUtils.ConvertBool(adjustConfig.getSessionSuccessDelegate() != null);
            int isSessionFailureCallbackImplemented   = AdjustUtils.ConvertBool(adjustConfig.getSessionFailureDelegate() != null);
            int isDeferredDeeplinkCallbackImplemented = AdjustUtils.ConvertBool(adjustConfig.getDeferredDeeplinkDelegate() != null);

            _AdjustLaunchApp(
                appToken,
                environment,
                sdkPrefix,
                allowSuppressLogLevel,
                logLevel,
                eventBufferingEnabled,
                sendInBackground,
                delayStart,
                userAgent,
                launchDeferredDeeplink,
                sceneName,
                isAttributionCallbackImplemented,
                isEventSuccessCallbackImplemented,
                isEventFailureCallbackImplemented,
                isSessionSuccessCallbackImplemented,
                isSessionFailureCallbackImplemented,
                isDeferredDeeplinkCallbackImplemented);
        }
Esempio n. 5
0
        public static void TrackAdRevenue(AdjustAdRevenue adRevenue)
        {
            string source                       = adRevenue.source;
            double revenue                      = AdjustUtils.ConvertDouble(adRevenue.revenue);
            string currency                     = adRevenue.currency;
            int    adImpressionsCount           = AdjustUtils.ConvertInt(adRevenue.adImpressionsCount);
            string adRevenueNetwork             = adRevenue.adRevenueNetwork;
            string adRevenueUnit                = adRevenue.adRevenueUnit;
            string adRevenuePlacement           = adRevenue.adRevenuePlacement;
            string stringJsonCallbackParameters = AdjustUtils.ConvertListToJson(adRevenue.callbackList);
            string stringJsonPartnerParameters  = AdjustUtils.ConvertListToJson(adRevenue.partnerList);

            _AdjustTrackAdRevenueNew(
                source,
                revenue,
                currency,
                adImpressionsCount,
                adRevenueNetwork,
                adRevenueUnit,
                adRevenuePlacement,
                stringJsonCallbackParameters,
                stringJsonPartnerParameters);
        }