Ejemplo n.º 1
0
        /// <summary>
        /// Returns true if ItemExtraOption instances are equal
        /// </summary>
        /// <param name="input">Instance of ItemExtraOption to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ItemExtraOption input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Name == input.Name ||
                     Name != null &&
                     Name.Equals(input.Name)
                     ) &&
                 (
                     Description == input.Description ||
                     Description != null &&
                     Description.Equals(input.Description)
                 ) &&
                 (
                     MerchantSuppliedId == input.MerchantSuppliedId ||
                     MerchantSuppliedId != null &&
                     MerchantSuppliedId.Equals(input.MerchantSuppliedId)
                 ) &&
                 (
                     Active == input.Active ||
                     Active != null &&
                     Active.Equals(input.Active)
                 ) &&
                 (
                     Price == input.Price ||
                     Price != null &&
                     Price.Equals(input.Price)
                 ) &&
                 (
                     BasePrice == input.BasePrice ||
                     BasePrice != null &&
                     BasePrice.Equals(input.BasePrice)
                 ) &&
                 (
                     Default == input.Default ||
                     Default != null &&
                     Default.Equals(input.Default)
                 ) &&
                 (
                     SortId == input.SortId ||
                     SortId != null &&
                     SortId.Equals(input.SortId)
                 ) &&
                 (
                     TaxRate == input.TaxRate ||
                     TaxRate != null &&
                     TaxRate.Equals(input.TaxRate)
                 ) &&
                 (
                     Extras == input.Extras ||
                     Extras != null &&
                     Extras.SequenceEqual(input.Extras)
                 ));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns true if MenuCategory instances are equal
        /// </summary>
        /// <param name="input">Instance of MenuCategory to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(MenuCategory input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Name == input.Name ||
                     Name != null &&
                     Name.Equals(input.Name)
                     ) &&
                 (
                     Subtitle == input.Subtitle ||
                     Subtitle != null &&
                     Subtitle.Equals(input.Subtitle)
                 ) &&
                 (
                     MerchantSuppliedId == input.MerchantSuppliedId ||
                     MerchantSuppliedId != null &&
                     MerchantSuppliedId.Equals(input.MerchantSuppliedId)
                 ) &&
                 (
                     Active == input.Active ||
                     Active != null &&
                     Active.Equals(input.Active)
                 ) &&
                 (
                     SortId == input.SortId ||
                     SortId != null &&
                     SortId.Equals(input.SortId)
                 ) &&
                 (
                     Items == input.Items ||
                     Items != null &&
                     Items.SequenceEqual(input.Items)
                 ));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Returns true if NestedL2ItemExtra instances are equal
        /// </summary>
        /// <param name="input">Instance of NestedL2ItemExtra to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(NestedL2ItemExtra input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Name == input.Name ||
                     Name != null &&
                     Name.Equals(input.Name)
                     ) &&
                 (
                     Description == input.Description ||
                     Description != null &&
                     Description.Equals(input.Description)
                 ) &&
                 (
                     MerchantSuppliedId == input.MerchantSuppliedId ||
                     MerchantSuppliedId != null &&
                     MerchantSuppliedId.Equals(input.MerchantSuppliedId)
                 ) &&
                 (
                     Active == input.Active ||
                     Active != null &&
                     Active.Equals(input.Active)
                 ) &&
                 (
                     SortId == input.SortId ||
                     SortId != null &&
                     SortId.Equals(input.SortId)
                 ) &&
                 (
                     MinNumOptions == input.MinNumOptions ||
                     MinNumOptions != null &&
                     MinNumOptions.Equals(input.MinNumOptions)
                 ) &&
                 (
                     MaxNumOptions == input.MaxNumOptions ||
                     MaxNumOptions != null &&
                     MaxNumOptions.Equals(input.MaxNumOptions)
                 ) &&
                 (
                     NumFreeOptions == input.NumFreeOptions ||
                     NumFreeOptions != null &&
                     NumFreeOptions.Equals(input.NumFreeOptions)
                 ) &&
                 (
                     MinOptionChoiceQuantity == input.MinOptionChoiceQuantity ||
                     MinOptionChoiceQuantity != null &&
                     MinOptionChoiceQuantity.Equals(input.MinOptionChoiceQuantity)
                 ) &&
                 (
                     MaxOptionChoiceQuantity == input.MaxOptionChoiceQuantity ||
                     MaxOptionChoiceQuantity != null &&
                     MaxOptionChoiceQuantity.Equals(input.MaxOptionChoiceQuantity)
                 ) &&
                 (
                     MinAggregateOptionsQuantity == input.MinAggregateOptionsQuantity ||
                     MinAggregateOptionsQuantity != null &&
                     MinAggregateOptionsQuantity.Equals(input.MinAggregateOptionsQuantity)
                 ) &&
                 (
                     MaxAggregateOptionsQuantity == input.MaxAggregateOptionsQuantity ||
                     MaxAggregateOptionsQuantity != null &&
                     MaxAggregateOptionsQuantity.Equals(input.MaxAggregateOptionsQuantity)
                 ) &&
                 (
                     Options == input.Options ||
                     Options != null &&
                     Options.SequenceEqual(input.Options)
                 ));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Returns true if Item instances are equal
        /// </summary>
        /// <param name="input">Instance of Item to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Item input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Name == input.Name ||
                     Name != null &&
                     Name.Equals(input.Name)
                     ) &&
                 (
                     Description == input.Description ||
                     Description != null &&
                     Description.Equals(input.Description)
                 ) &&
                 (
                     MerchantSuppliedId == input.MerchantSuppliedId ||
                     MerchantSuppliedId != null &&
                     MerchantSuppliedId.Equals(input.MerchantSuppliedId)
                 ) &&
                 (
                     Active == input.Active ||
                     Active != null &&
                     Active.Equals(input.Active)
                 ) &&
                 (
                     IsAlcohol == input.IsAlcohol ||
                     IsAlcohol != null &&
                     IsAlcohol.Equals(input.IsAlcohol)
                 ) &&
                 (
                     IsBikeFriendly == input.IsBikeFriendly ||
                     IsBikeFriendly != null &&
                     IsBikeFriendly.Equals(input.IsBikeFriendly)
                 ) &&
                 (
                     SortId == input.SortId ||
                     SortId != null &&
                     SortId.Equals(input.SortId)
                 ) &&
                 (
                     Price == input.Price ||
                     Price != null &&
                     Price.Equals(input.Price)
                 ) &&
                 (
                     BasePrice == input.BasePrice ||
                     BasePrice != null &&
                     BasePrice.Equals(input.BasePrice)
                 ) &&
                 (
                     Extras == input.Extras ||
                     Extras != null &&
                     Extras.SequenceEqual(input.Extras)
                 ) &&
                 (
                     TaxRate == input.TaxRate ||
                     TaxRate != null &&
                     TaxRate.Equals(input.TaxRate)
                 ) &&
                 (
                     OriginalImageUrl == input.OriginalImageUrl ||
                     OriginalImageUrl != null &&
                     OriginalImageUrl.Equals(input.OriginalImageUrl)
                 ));
        }