/// <summary> /// Returns true if ProductOverridesWithCatalogValues instances are equal /// </summary> /// <param name="other">Instance of ProductOverridesWithCatalogValues to be compared</param> /// <returns>Boolean</returns> public bool Equals(ProductOverridesWithCatalogValues other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return(false); }
/// <summary> /// Initializes a new instance of the <see cref="ChannelCatalogProductInfo" /> class. /// </summary> /// <param name="ProductId">The product identifier (required).</param> /// <param name="ProductSku">The product SKU (required).</param> /// <param name="ProductTitle">The product tile (required).</param> /// <param name="ProductImageUrl">The product image Url (required).</param> /// <param name="ProductActive">Indicates if the product still exists in your catalog (required).</param> /// <param name="Overrides">Overrides (required).</param> /// <param name="Disabled">Indicates if the product has been disabled or not (required) (default to false).</param> /// <param name="CategoryMapped">Indicates if the product's category has been mapped to a channel category (required).</param> /// <param name="Excluded">Indicates if the product has been excluded by a exclusion filter (required) (default to false).</param> /// <param name="ExcludedBy">ExcludedBy.</param> /// <param name="Links">Links (required).</param> public ChannelCatalogProductInfo(string ProductId = default(string), string ProductSku = default(string), string ProductTitle = default(string), string ProductImageUrl = default(string), bool?ProductActive = default(bool?), ProductOverridesWithCatalogValues Overrides = default(ProductOverridesWithCatalogValues), bool?Disabled = false, bool?CategoryMapped = default(bool?), bool?Excluded = false, List <ExclusionFilterName> ExcludedBy = default(List <ExclusionFilterName>), ChannelCatalogProductInfoLinks Links = default(ChannelCatalogProductInfoLinks)) { // to ensure "ProductId" is required (not null) if (ProductId == null) { throw new InvalidDataException("ProductId is a required property for ChannelCatalogProductInfo and cannot be null"); } else { this.ProductId = ProductId; } // to ensure "ProductSku" is required (not null) if (ProductSku == null) { throw new InvalidDataException("ProductSku is a required property for ChannelCatalogProductInfo and cannot be null"); } else { this.ProductSku = ProductSku; } // to ensure "ProductTitle" is required (not null) if (ProductTitle == null) { throw new InvalidDataException("ProductTitle is a required property for ChannelCatalogProductInfo and cannot be null"); } else { this.ProductTitle = ProductTitle; } // to ensure "ProductImageUrl" is required (not null) if (ProductImageUrl == null) { throw new InvalidDataException("ProductImageUrl is a required property for ChannelCatalogProductInfo and cannot be null"); } else { this.ProductImageUrl = ProductImageUrl; } // to ensure "ProductActive" is required (not null) if (ProductActive == null) { throw new InvalidDataException("ProductActive is a required property for ChannelCatalogProductInfo and cannot be null"); } else { this.ProductActive = ProductActive; } // to ensure "Overrides" is required (not null) if (Overrides == null) { throw new InvalidDataException("Overrides is a required property for ChannelCatalogProductInfo and cannot be null"); } else { this.Overrides = Overrides; } // to ensure "Disabled" is required (not null) if (Disabled == null) { throw new InvalidDataException("Disabled is a required property for ChannelCatalogProductInfo and cannot be null"); } else { this.Disabled = Disabled; } // to ensure "CategoryMapped" is required (not null) if (CategoryMapped == null) { throw new InvalidDataException("CategoryMapped is a required property for ChannelCatalogProductInfo and cannot be null"); } else { this.CategoryMapped = CategoryMapped; } // to ensure "Excluded" is required (not null) if (Excluded == null) { throw new InvalidDataException("Excluded is a required property for ChannelCatalogProductInfo and cannot be null"); } else { this.Excluded = Excluded; } // to ensure "Links" is required (not null) if (Links == null) { throw new InvalidDataException("Links is a required property for ChannelCatalogProductInfo and cannot be null"); } else { this.Links = Links; } this.ExcludedBy = ExcludedBy; }