/// <summary> /// Returns true if BrandedFoodObjectDietFlags instances are equal /// </summary> /// <param name="other">Instance of BrandedFoodObjectDietFlags to be compared</param> /// <returns>Boolean</returns> public bool Equals(BrandedFoodObjectDietFlags other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Ingredient == other.Ingredient || Ingredient != null && Ingredient.Equals(other.Ingredient) ) && ( IngredientDescription == other.IngredientDescription || IngredientDescription != null && IngredientDescription.Equals(other.IngredientDescription) ) && ( DietLabel == other.DietLabel || DietLabel != null && DietLabel.Equals(other.DietLabel) ) && ( IsCompatible == other.IsCompatible || IsCompatible != null && IsCompatible.Equals(other.IsCompatible) ) && ( CompatibilityLevel == other.CompatibilityLevel || CompatibilityLevel != null && CompatibilityLevel.Equals(other.CompatibilityLevel) ) && ( CompatibilityDescription == other.CompatibilityDescription || CompatibilityDescription != null && CompatibilityDescription.Equals(other.CompatibilityDescription) ) && ( IsAllergen == other.IsAllergen || IsAllergen != null && IsAllergen.Equals(other.IsAllergen) )); }
/// <summary> /// Returns true if BrandedFoodObjectDietLabelsGlutenFree instances are equal /// </summary> /// <param name="other">Instance of BrandedFoodObjectDietLabelsGlutenFree to be compared</param> /// <returns>Boolean</returns> public bool Equals(BrandedFoodObjectDietLabelsGlutenFree other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( IsCompatible == other.IsCompatible || IsCompatible != null && IsCompatible.Equals(other.IsCompatible) ) && ( CompatibilityLevel == other.CompatibilityLevel || CompatibilityLevel != null && CompatibilityLevel.Equals(other.CompatibilityLevel) ) && ( Confidence == other.Confidence || Confidence != null && Confidence.Equals(other.Confidence) ) && ( ConfidenceDescription == other.ConfidenceDescription || ConfidenceDescription != null && ConfidenceDescription.Equals(other.ConfidenceDescription) )); }