コード例 #1
0
 private static Inventory GetInventory()
 {
     var inventory = new Inventory();
     var purchasesList = Store.Inventory;
     foreach (string storeSku in purchasesList)
     {
         Purchase purchase = Purchase.CreateFromSku(GetSku(storeSku));
         inventory.AddPurchase(purchase);
     }
     return inventory;
 }
コード例 #2
0
ファイル: OpenIAB.cs プロジェクト: Kero-it/OpenIAB
		public static void CreateInventory(StoreKitProduct[] products) {
			_inventory = new Inventory(products);
		}
コード例 #3
0
		public static void CreateInventory(string json) {
			_inventory = new Inventory(json);
		}