/// <inheritdoc /> public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ SessionTimeout.GetHashCode(); hashCode = (hashCode * 397) ^ RebalanceTimeout.GetHashCode(); hashCode = (hashCode * 397) ^ (GroupProtocols?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (GroupId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MemberId?.GetHashCode() ?? 0); return(hashCode); } }
/// <inheritdoc /> public bool Equals(JoinGroupRequest other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(base.Equals(other) && SessionTimeout.Equals(other.SessionTimeout) && RebalanceTimeout.Equals(other.RebalanceTimeout) && string.Equals(GroupId, other.GroupId) && string.Equals(MemberId, other.MemberId) && GroupProtocols.HasEqualElementsInOrder(other.GroupProtocols)); }