Ejemplo n.º 1
0
        /// <summary>
        /// Returns true if ExclusionFilters instances are equal
        /// </summary>
        /// <param name="other">Instance of ExclusionFilters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ExclusionFilters other)
        {
            // credit: http://stackoverflow.com/a/10454552/677735
            if (other == null)
            {
                return(false);
            }

            return(false);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelCatalog" /> class.
 /// </summary>
 /// <param name="ChannelId">ChannelId (required).</param>
 /// <param name="ChannelName">ChannelName (required).</param>
 /// <param name="ChannelImageUrl">ChannelImageUrl (required).</param>
 /// <param name="ProductCount">The product count exported considering category mapping. Not all filters have been applied. (required).</param>
 /// <param name="Enabled">Indicates if the channel catalog is active (required).</param>
 /// <param name="IsMarketplace">Indicates if this channel catalog is related to a marketplace (required).</param>
 /// <param name="ChannelCatalogId">ChannelCatalogId (required).</param>
 /// <param name="StoreId">StoreId (required).</param>
 /// <param name="GeneralSettings">GeneralSettings (required).</param>
 /// <param name="CostSettings">CostSettings (required).</param>
 /// <param name="ColumnMappings">ColumnMappings.</param>
 /// <param name="ExclusionFilters">ExclusionFilters.</param>
 /// <param name="ExportUrl">ExportUrl.</param>
 /// <param name="State">State (required).</param>
 /// <param name="Types">The channel type list related to the channel (required).</param>
 /// <param name="Links">Indicates the actions you can do on a channel catalog (required).</param>
 public ChannelCatalog(BeezUPCommonChannelId ChannelId = default(BeezUPCommonChannelId), BeezUPCommonChannelName ChannelName = default(BeezUPCommonChannelName), BeezUPCommonHttpUrl ChannelImageUrl = default(BeezUPCommonHttpUrl), int?ProductCount = default(int?), bool?Enabled = default(bool?), bool?IsMarketplace = default(bool?), BeezUPCommonChannelCatalogId ChannelCatalogId = default(BeezUPCommonChannelCatalogId), BeezUPCommonStoreId StoreId = default(BeezUPCommonStoreId), GeneralSettings GeneralSettings = default(GeneralSettings), CostSettings CostSettings = default(CostSettings), ColumnMappingWithNameList ColumnMappings = default(ColumnMappingWithNameList), ExclusionFilters ExclusionFilters = default(ExclusionFilters), BeezUPCommonHttpUrl ExportUrl = default(BeezUPCommonHttpUrl), ChannelCatalogState State = default(ChannelCatalogState), List <string> Types = default(List <string>), List <BeezUPCommonLink2> Links = default(List <BeezUPCommonLink2>))
 {
     // to ensure "ChannelId" is required (not null)
     if (ChannelId == null)
     {
         throw new InvalidDataException("ChannelId is a required property for ChannelCatalog and cannot be null");
     }
     else
     {
         this.ChannelId = ChannelId;
     }
     // to ensure "ChannelName" is required (not null)
     if (ChannelName == null)
     {
         throw new InvalidDataException("ChannelName is a required property for ChannelCatalog and cannot be null");
     }
     else
     {
         this.ChannelName = ChannelName;
     }
     // to ensure "ChannelImageUrl" is required (not null)
     if (ChannelImageUrl == null)
     {
         throw new InvalidDataException("ChannelImageUrl is a required property for ChannelCatalog and cannot be null");
     }
     else
     {
         this.ChannelImageUrl = ChannelImageUrl;
     }
     // to ensure "ProductCount" is required (not null)
     if (ProductCount == null)
     {
         throw new InvalidDataException("ProductCount is a required property for ChannelCatalog and cannot be null");
     }
     else
     {
         this.ProductCount = ProductCount;
     }
     // to ensure "Enabled" is required (not null)
     if (Enabled == null)
     {
         throw new InvalidDataException("Enabled is a required property for ChannelCatalog and cannot be null");
     }
     else
     {
         this.Enabled = Enabled;
     }
     // to ensure "IsMarketplace" is required (not null)
     if (IsMarketplace == null)
     {
         throw new InvalidDataException("IsMarketplace is a required property for ChannelCatalog and cannot be null");
     }
     else
     {
         this.IsMarketplace = IsMarketplace;
     }
     // to ensure "ChannelCatalogId" is required (not null)
     if (ChannelCatalogId == null)
     {
         throw new InvalidDataException("ChannelCatalogId is a required property for ChannelCatalog and cannot be null");
     }
     else
     {
         this.ChannelCatalogId = ChannelCatalogId;
     }
     // to ensure "StoreId" is required (not null)
     if (StoreId == null)
     {
         throw new InvalidDataException("StoreId is a required property for ChannelCatalog and cannot be null");
     }
     else
     {
         this.StoreId = StoreId;
     }
     // to ensure "GeneralSettings" is required (not null)
     if (GeneralSettings == null)
     {
         throw new InvalidDataException("GeneralSettings is a required property for ChannelCatalog and cannot be null");
     }
     else
     {
         this.GeneralSettings = GeneralSettings;
     }
     // to ensure "CostSettings" is required (not null)
     if (CostSettings == null)
     {
         throw new InvalidDataException("CostSettings is a required property for ChannelCatalog and cannot be null");
     }
     else
     {
         this.CostSettings = CostSettings;
     }
     // to ensure "State" is required (not null)
     if (State == null)
     {
         throw new InvalidDataException("State is a required property for ChannelCatalog and cannot be null");
     }
     else
     {
         this.State = State;
     }
     // to ensure "Types" is required (not null)
     if (Types == null)
     {
         throw new InvalidDataException("Types is a required property for ChannelCatalog and cannot be null");
     }
     else
     {
         this.Types = Types;
     }
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for ChannelCatalog and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     this.ColumnMappings   = ColumnMappings;
     this.ExclusionFilters = ExclusionFilters;
     this.ExportUrl        = ExportUrl;
 }