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