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