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
		public static void CreateInventory(StoreKitProduct[] products) {
			_inventory = new Inventory(products);
		}
Пример #3
0
		public static void CreateInventory(string json) {
			_inventory = new Inventory(json);
		}