예제 #1
0
        public ProductCatalogItem Clone()
        {
            ProductCatalogItem item = new ProductCatalogItem();

            item.id   = this.id;
            item.type = this.type;
            item.SetStoreIDs(this.allStoreIDs);
            item.defaultDescription = this.defaultDescription.Clone();
            item.screenshotPath     = this.screenshotPath;
            item.applePriceTier     = this.applePriceTier;
            item.googlePrice.value  = this.googlePrice.value;
            item.pricingTemplateID  = this.pricingTemplateID;
            foreach (var desc in this.descriptions)
            {
                item.descriptions.Add(desc.Clone());
            }

            return(item);
        }
예제 #2
0
 public void Remove(ProductCatalogItem item)
 {
     products.Remove(item);
 }
예제 #3
0
 public void Add(ProductCatalogItem item)
 {
     products.Add(item);
 }