/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Uuid != null) { hashCode = hashCode * 59 + Uuid.GetHashCode(); } if (AgreementName != null) { hashCode = hashCode * 59 + AgreementName.GetHashCode(); } if (Version != null) { hashCode = hashCode * 59 + Version.GetHashCode(); } if (TeamIds != null) { hashCode = hashCode * 59 + TeamIds.GetHashCode(); } if (AcceptedUserIds != null) { hashCode = hashCode * 59 + AcceptedUserIds.GetHashCode(); } if (SubRealmId != null) { hashCode = hashCode * 59 + SubRealmId.GetHashCode(); } return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Uuid != null) { hashCode = hashCode * 59 + Uuid.GetHashCode(); } if (AgreementName != null) { hashCode = hashCode * 59 + AgreementName.GetHashCode(); } if (AgreementFileData != null) { hashCode = hashCode * 59 + AgreementFileData.GetHashCode(); } hashCode = hashCode * 59 + AutoUpdate.GetHashCode(); if (SubRealmId != null) { hashCode = hashCode * 59 + SubRealmId.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if TermsOfService instances are equal /// </summary> /// <param name="other">Instance of TermsOfService to be compared</param> /// <returns>Boolean</returns> public bool Equals(TermsOfService other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Uuid == other.Uuid || Uuid != null && Uuid.Equals(other.Uuid) ) && ( AgreementName == other.AgreementName || AgreementName != null && AgreementName.Equals(other.AgreementName) ) && ( Version == other.Version || Version != null && Version.Equals(other.Version) ) && ( AgreementFileData == other.AgreementFileData || AgreementFileData != null && AgreementFileData.Equals(other.AgreementFileData) ) && ( TeamIds == other.TeamIds || TeamIds != null && other.TeamIds != null && TeamIds.SequenceEqual(other.TeamIds) ) && ( AcceptedUserIds == other.AcceptedUserIds || AcceptedUserIds != null && other.AcceptedUserIds != null && AcceptedUserIds.SequenceEqual(other.AcceptedUserIds) ) && ( SubRealmId == other.SubRealmId || SubRealmId != null && SubRealmId.Equals(other.SubRealmId) )); }
/// <summary> /// Returns true if TermsOfServiceSubmit instances are equal /// </summary> /// <param name="other">Instance of TermsOfServiceSubmit to be compared</param> /// <returns>Boolean</returns> public bool Equals(TermsOfServiceSubmit other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Uuid == other.Uuid || Uuid != null && Uuid.Equals(other.Uuid) ) && ( AgreementName == other.AgreementName || AgreementName != null && AgreementName.Equals(other.AgreementName) ) && ( AgreementFileData == other.AgreementFileData || AgreementFileData != null && AgreementFileData.Equals(other.AgreementFileData) ) && ( AutoUpdate == other.AutoUpdate || AutoUpdate.Equals(other.AutoUpdate) ) && ( SubRealmId == other.SubRealmId || SubRealmId != null && SubRealmId.Equals(other.SubRealmId) )); }