public IAPData(PK.GetDailyWheelShop.REDataPacks data) { this.id = data.id; this.tag = data.tag; this.sale_percentage = data.sale_percentage; this.regular_coins = data.regular_coins; this.free_percentage = data.free_percentage; this.coins = data.coins; this.price = data.price; this.product_url = data.product_url; this.level_up_bonus = data.level_up_bonus; this.level_bonus_percentage = data.level_bonus_percentage; this.regular_price = data.regular_price; this.code = data.code; }
public void BuyPurchase(PK.GetDailyWheelShop.REDataPacks ItemInfo, System.Action <string, GooglePlayReceipt, AppleInAppPurchaseReceipt> Complete) { Main.I.AppsFlyerEvent(AFInAppEvents.SHOP, AFInAppEvents.TRY_PURCHASE, ItemInfo.id.ToString()); _IAP.BuyProductID(new DEF.IAPData(ItemInfo), Complete); }