Beispiel #1
0
 public void IapShopPurchase(PremiumProduct product)
 {
     if (this.OnIapShopPurchase != null)
     {
         this.OnIapShopPurchase(product);
     }
 }
Beispiel #2
0
        public Purchase CreatePurchase(PremiumProduct _product)
        {
            AndroidPurchase purchase = new AndroidPurchase(this);

            purchase.product     = _product;
            this.currentPurchase = purchase;
            return(this.currentPurchase);
        }
        public Purchase CreatePurchase(PremiumProduct product)
        {
            MockPurchase purchase = new MockPurchase();

            purchase.product   = product;
            purchase.State     = EPurchaseState.Initiated;
            purchase.connector = this;
            return(this.currentPurchase = purchase);
        }
Beispiel #4
0
 public void Purchase(PremiumProduct product)
 {
     if (this.initialized)
     {
         MATEvent tuneEvent = new MATEvent();
         tuneEvent.name         = "purchase";
         tuneEvent.revenue      = new double?((double)product.price);
         tuneEvent.currencyCode = product.currencyCode;
         MATBinding.MeasureEvent(tuneEvent);
     }
 }
 public void Purchase(PremiumProduct product)
 {
     if (this.initialized)
     {
         Dictionary <string, string> dictionary2 = new Dictionary <string, string>();
         dictionary2.Add("af_revenue", string.Empty + product.trackingAmount);
         dictionary2.Add("af_content_id", product.flareProductId);
         dictionary2.Add("af_currency", product.trackingIsoCurrencyCode);
         Dictionary <string, string> eventValues = dictionary2;
         AppsFlyer.trackRichEvent("af_purchase", eventValues);
     }
 }
Beispiel #6
0
 public void Purchase(PremiumProduct product)
 {
     if (product != null)
     {
         IEnumerator <ISdkWrapper> enumerator = this.m_trackingSdks.GetEnumerator();
         try
         {
             while (enumerator.MoveNext())
             {
                 enumerator.Current.Purchase(product);
             }
         }
         finally
         {
             if (enumerator == null)
             {
             }
             enumerator.Dispose();
         }
     }
 }
Beispiel #7
0
 public void Purchase(PremiumProduct product)
 {
     FB.LogPurchase(product.price, product.currencyCode, null);
 }
Beispiel #8
0
 public void Purchase(PremiumProduct product)
 {
     this.Print("Purchase " + product.flareProductId);
 }