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; }
public static void CreateInventory(StoreKitProduct[] products) { _inventory = new Inventory(products); }
public static void CreateInventory(string json) { _inventory = new Inventory(json); }