/// <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 (OshiraseKubun != null) { hashCode = hashCode * 59 + OshiraseKubun.GetHashCode(); } if (OshiraseNaiyo != null) { hashCode = hashCode * 59 + OshiraseNaiyo.GetHashCode(); } if (OshiraseNichiji != null) { hashCode = hashCode * 59 + OshiraseNichiji.GetHashCode(); } if (TempuFileUmu != null) { hashCode = hashCode * 59 + TempuFileUmu.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if MishikkouResponse instances are equal /// </summary> /// <param name="other">Instance of MishikkouResponse to be compared</param> /// <returns>Boolean</returns> public bool Equals(MishikkouResponse other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( OshiraseKubun == other.OshiraseKubun || OshiraseKubun != null && OshiraseKubun.Equals(other.OshiraseKubun) ) && ( OshiraseNaiyo == other.OshiraseNaiyo || OshiraseNaiyo != null && OshiraseNaiyo.Equals(other.OshiraseNaiyo) ) && ( OshiraseNichiji == other.OshiraseNichiji || OshiraseNichiji != null && OshiraseNichiji.Equals(other.OshiraseNichiji) ) && ( TempuFileUmu == other.TempuFileUmu || TempuFileUmu != null && TempuFileUmu.Equals(other.TempuFileUmu) )); }