コード例 #1
0
        // Store PURCHASE

        public void SendPurchaseEvent(QLPurchaseState state, string productId, float price, string currency, int reward, QLPurchaseSource source, string failReason = null)
        {
            if (state == QLPurchaseState.QLPurchaseStateSucceded)
            {
                AdjustEvent adjustEvent = new AdjustEvent(Constants.Analytics.AdjustEvents.Purchase);
                adjustEvent.setRevenue(Convert.ToDouble(price), currency);
                Adjust.trackEvent(adjustEvent);
            }

            QLPurchase purchaseEvent = new QLPurchase(state, productId, price, currency, reward, source, failReason);

            TrackEvent(purchaseEvent);
        }
コード例 #2
0
        public QLPurchase(QLPurchaseState PurchaseState, string ProductId, float Price, string Currency, int Reward, QLPurchaseSource Source, string FailReason = null)
        {
            this.PurchaseState = PurchaseState;

            this.ProductId = ProductId;

            this.Price = Price;

            this.Currency = Currency;

            this.Reward = Reward;

            this.Source = Source;

            this.FailReason = FailReason;
        }