public static GUIPurchasable CreateInstance(PurchasableItem item) { List <IPlatformEditor> editors = new List <IPlatformEditor>(); editors.Add(new GooglePlayEditor(item)); editors.Add(new DefaultPlatformEditor(item, BillingPlatform.AmazonAppstore)); editors.Add(new AppleAppStoreEditor(item)); var macEditor = new DefaultPlatformEditor(item, BillingPlatform.MacAppStore); // Mac must be different to iOS. macEditor.localId = item.Id + ".mac"; editors.Add(macEditor); editors.Add(new DefaultPlatformEditor(item, BillingPlatform.WindowsPhone8)); editors.Add(new DefaultPlatformEditor(item, BillingPlatform.Windows8_1)); editors.Add(new DefaultPlatformEditor(item, BillingPlatform.SamsungApps)); return(new GUIPurchasable(item, editors)); }
public static GUIPurchasable CreateInstance(PurchasableItem item) { List<IPlatformEditor> editors = new List<IPlatformEditor>(); editors.Add(new GooglePlayEditor(item)); editors.Add(new DefaultPlatformEditor(item, BillingPlatform.AmazonAppstore)); editors.Add(new AppleAppStoreEditor(item)); var macEditor = new DefaultPlatformEditor (item, BillingPlatform.MacAppStore); // Mac must be different to iOS. macEditor.localId = item.Id + ".mac"; editors.Add(macEditor); editors.Add(new DefaultPlatformEditor(item, BillingPlatform.WindowsPhone8)); editors.Add(new DefaultPlatformEditor(item, BillingPlatform.Windows8_1)); editors.Add(new DefaultPlatformEditor(item, BillingPlatform.SamsungApps)); return new GUIPurchasable(item, editors); }