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