/// <summary> /// Returns true if ComAdobeCqSocialConnectOauthImplFacebookProviderImplProperties instances are equal /// </summary> /// <param name="other">Instance of ComAdobeCqSocialConnectOauthImplFacebookProviderImplProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComAdobeCqSocialConnectOauthImplFacebookProviderImplProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( OauthProviderId == other.OauthProviderId || OauthProviderId != null && OauthProviderId.Equals(other.OauthProviderId) ) && ( OauthCloudConfigRoot == other.OauthCloudConfigRoot || OauthCloudConfigRoot != null && OauthCloudConfigRoot.Equals(other.OauthCloudConfigRoot) ) && ( ProviderConfigRoot == other.ProviderConfigRoot || ProviderConfigRoot != null && ProviderConfigRoot.Equals(other.ProviderConfigRoot) ) && ( ProviderConfigCreateTagsEnabled == other.ProviderConfigCreateTagsEnabled || ProviderConfigCreateTagsEnabled != null && ProviderConfigCreateTagsEnabled.Equals(other.ProviderConfigCreateTagsEnabled) ) && ( ProviderConfigUserFolder == other.ProviderConfigUserFolder || ProviderConfigUserFolder != null && ProviderConfigUserFolder.Equals(other.ProviderConfigUserFolder) ) && ( ProviderConfigFacebookFetchFields == other.ProviderConfigFacebookFetchFields || ProviderConfigFacebookFetchFields != null && ProviderConfigFacebookFetchFields.Equals(other.ProviderConfigFacebookFetchFields) ) && ( ProviderConfigFacebookFields == other.ProviderConfigFacebookFields || ProviderConfigFacebookFields != null && ProviderConfigFacebookFields.Equals(other.ProviderConfigFacebookFields) ) && ( ProviderConfigRefreshUserdataEnabled == other.ProviderConfigRefreshUserdataEnabled || ProviderConfigRefreshUserdataEnabled != null && ProviderConfigRefreshUserdataEnabled.Equals(other.ProviderConfigRefreshUserdataEnabled) )); }
/// <summary> /// Returns true if ComAdobeCqSocialConnectOauthImplTwitterProviderImplProperties instances are equal /// </summary> /// <param name="other">Instance of ComAdobeCqSocialConnectOauthImplTwitterProviderImplProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComAdobeCqSocialConnectOauthImplTwitterProviderImplProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( OauthProviderId == other.OauthProviderId || OauthProviderId != null && OauthProviderId.Equals(other.OauthProviderId) ) && ( OauthCloudConfigRoot == other.OauthCloudConfigRoot || OauthCloudConfigRoot != null && OauthCloudConfigRoot.Equals(other.OauthCloudConfigRoot) ) && ( ProviderConfigRoot == other.ProviderConfigRoot || ProviderConfigRoot != null && ProviderConfigRoot.Equals(other.ProviderConfigRoot) ) && ( ProviderConfigUserFolder == other.ProviderConfigUserFolder || ProviderConfigUserFolder != null && ProviderConfigUserFolder.Equals(other.ProviderConfigUserFolder) ) && ( ProviderConfigTwitterEnableParams == other.ProviderConfigTwitterEnableParams || ProviderConfigTwitterEnableParams != null && ProviderConfigTwitterEnableParams.Equals(other.ProviderConfigTwitterEnableParams) ) && ( ProviderConfigTwitterParams == other.ProviderConfigTwitterParams || ProviderConfigTwitterParams != null && ProviderConfigTwitterParams.Equals(other.ProviderConfigTwitterParams) ) && ( ProviderConfigRefreshUserdataEnabled == other.ProviderConfigRefreshUserdataEnabled || ProviderConfigRefreshUserdataEnabled != null && ProviderConfigRefreshUserdataEnabled.Equals(other.ProviderConfigRefreshUserdataEnabled) )); }
/// <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 (OauthProviderId != null) { hashCode = hashCode * 59 + OauthProviderId.GetHashCode(); } if (OauthCloudConfigRoot != null) { hashCode = hashCode * 59 + OauthCloudConfigRoot.GetHashCode(); } if (ProviderConfigRoot != null) { hashCode = hashCode * 59 + ProviderConfigRoot.GetHashCode(); } if (ProviderConfigCreateTagsEnabled != null) { hashCode = hashCode * 59 + ProviderConfigCreateTagsEnabled.GetHashCode(); } if (ProviderConfigUserFolder != null) { hashCode = hashCode * 59 + ProviderConfigUserFolder.GetHashCode(); } if (ProviderConfigFacebookFetchFields != null) { hashCode = hashCode * 59 + ProviderConfigFacebookFetchFields.GetHashCode(); } if (ProviderConfigFacebookFields != null) { hashCode = hashCode * 59 + ProviderConfigFacebookFields.GetHashCode(); } if (ProviderConfigRefreshUserdataEnabled != null) { hashCode = hashCode * 59 + ProviderConfigRefreshUserdataEnabled.GetHashCode(); } return(hashCode); } }