/// <summary> /// Returns true if NofuJohoResponseResults instances are equal /// </summary> /// <param name="other">Instance of NofuJohoResponseResults to be compared</param> /// <returns>Boolean</returns> public bool Equals(NofuJohoResponseResults other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( KakuninBango == other.KakuninBango || KakuninBango != null && KakuninBango.Equals(other.KakuninBango) ) && ( NofuBango == other.NofuBango || NofuBango != null && NofuBango.Equals(other.NofuBango) ) && ( NofuGaku == other.NofuGaku || NofuGaku != null && NofuGaku.Equals(other.NofuGaku) ) && ( NofuJohoHakkoNichiji == other.NofuJohoHakkoNichiji || NofuJohoHakkoNichiji != null && NofuJohoHakkoNichiji.Equals(other.NofuJohoHakkoNichiji) ) && ( NofuJokyo == other.NofuJokyo || NofuJokyo != null && NofuJokyo.Equals(other.NofuJokyo) ) && ( NofuKikanSaishuNengappi == other.NofuKikanSaishuNengappi || NofuKikanSaishuNengappi != null && NofuKikanSaishuNengappi.Equals(other.NofuKikanSaishuNengappi) ) && ( NofuNichiji == other.NofuNichiji || NofuNichiji != null && NofuNichiji.Equals(other.NofuNichiji) ) && ( ShunoKikanBango == other.ShunoKikanBango || ShunoKikanBango != null && ShunoKikanBango.Equals(other.ShunoKikanBango) )); }
/// <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 (KakuninBango != null) { hashCode = hashCode * 59 + KakuninBango.GetHashCode(); } if (NofuBango != null) { hashCode = hashCode * 59 + NofuBango.GetHashCode(); } if (NofuGaku != null) { hashCode = hashCode * 59 + NofuGaku.GetHashCode(); } if (NofuJohoHakkoNichiji != null) { hashCode = hashCode * 59 + NofuJohoHakkoNichiji.GetHashCode(); } if (NofuJokyo != null) { hashCode = hashCode * 59 + NofuJokyo.GetHashCode(); } if (NofuKikanSaishuNengappi != null) { hashCode = hashCode * 59 + NofuKikanSaishuNengappi.GetHashCode(); } if (NofuNichiji != null) { hashCode = hashCode * 59 + NofuNichiji.GetHashCode(); } if (ShunoKikanBango != null) { hashCode = hashCode * 59 + ShunoKikanBango.GetHashCode(); } return(hashCode); } }