public override int GetHashCode() { int hashCode = 1248477288; if (ItemIds != null) { hashCode += ItemIds.GetHashCode(); } if (ModifierListsToEnable != null) { hashCode += ModifierListsToEnable.GetHashCode(); } if (ModifierListsToDisable != null) { hashCode += ModifierListsToDisable.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is UpdateItemModifierListsRequest other && ((ItemIds == null && other.ItemIds == null) || (ItemIds?.Equals(other.ItemIds) == true)) && ((ModifierListsToEnable == null && other.ModifierListsToEnable == null) || (ModifierListsToEnable?.Equals(other.ModifierListsToEnable) == true)) && ((ModifierListsToDisable == null && other.ModifierListsToDisable == null) || (ModifierListsToDisable?.Equals(other.ModifierListsToDisable) == true))); }