Ejemplo n.º 1
0
        /// <summary>
        /// Returns true if ThreeDSecureData instances are equal
        /// </summary>
        /// <param name="other">Instance of ThreeDSecureData to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ThreeDS2Result other)
        {
            // credit: http://stackoverflow.com/a/10454552/677735
            if (other == null)
            {
                return(false);
            }

            return
                ((
                     this.AuthenticationValue == other.AuthenticationValue ||
                     this.AuthenticationValue != null &&
                     this.AuthenticationValue.Equals(other.AuthenticationValue)
                     ) &&
                 (
                     this.ECI == other.ECI ||
                     this.ECI != null &&
                     this.ECI.Equals(other.ECI)
                 ) &&
                 (
                     this.ThreeDSServerTransID == other.ThreeDSServerTransID ||
                     this.ThreeDSServerTransID != null &&
                     this.ThreeDSServerTransID.Equals(other.ThreeDSServerTransID)
                 ) &&
                 (
                     this.TimeStamp == other.TimeStamp ||
                     this.TimeStamp != null &&
                     this.TimeStamp.Equals(other.TimeStamp)
                 ) &&
                 (
                     this.TransStatus == other.TransStatus ||
                     this.TransStatus != null &&
                     this.TransStatus.Equals(other.TransStatus)
                 ) &&
                 (
                     this.DsTransID == other.DsTransID ||
                     this.DsTransID != null &&
                     this.DsTransID.Equals(other.DsTransID)
                 ) &&
                 (
                     this.TransStatusReason == other.TransStatusReason ||
                     this.TransStatusReason != null &&
                     this.TransStatusReason.Equals(other.TransStatusReason)
                 ) &&
                 (
                     this.MessageVersion == other.MessageVersion ||
                     this.MessageVersion != null &&
                     this.MessageVersion.Equals(other.MessageVersion)
                 ));
        }
        /// <summary>
        /// Returns true if ThreeDSecureData instances are equal
        /// </summary>
        /// <param name="other">Instance of ThreeDSecureData to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ThreeDS2Result other)
        {
            // credit: http://stackoverflow.com/a/10454552/677735
            if (other == null)
            {
                return(false);
            }

            return
                ((
                     this.AuthenticationValue == other.AuthenticationValue ||
                     this.AuthenticationValue != null &&
                     this.AuthenticationValue.Equals(other.AuthenticationValue)
                     ) &&
                 (
                     this.ECI == other.ECI ||
                     this.ECI != null &&
                     this.ECI.Equals(other.ECI)
                 ) &&
                 (
                     this.ThreeDSServerTransID == other.ThreeDSServerTransID ||
                     this.ThreeDSServerTransID != null &&
                     this.ThreeDSServerTransID.Equals(other.ThreeDSServerTransID)
                 ) &&
                 (
                     this.TimeStamp == other.TimeStamp ||
                     this.TimeStamp != null &&
                     this.TimeStamp.Equals(other.TimeStamp)
                 ) &&
                 (
                     this.TransStatus == other.TransStatus ||
                     this.TransStatus != null &&
                     this.TransStatus.Equals(other.TransStatus)
                 ) &&
                 (
                     this.DsTransID == other.DsTransID ||
                     this.DsTransID != null &&
                     this.DsTransID.Equals(other.DsTransID)
                 ) &&
                 (
                     this.TransStatusReason == other.TransStatusReason ||
                     this.TransStatusReason != null &&
                     this.TransStatusReason.Equals(other.TransStatusReason)
                 ) &&
                 (
                     this.MessageVersion == other.MessageVersion ||
                     this.MessageVersion != null &&
                     this.MessageVersion.Equals(other.MessageVersion)
                 ) &&
                 (
                     this.CavvAlgorithm == other.CavvAlgorithm ||
                     this.CavvAlgorithm != null &&
                     this.CavvAlgorithm.Equals(other.CavvAlgorithm)
                 ) &&
                 (
                     this.WhiteListStatus == other.WhiteListStatus ||
                     this.WhiteListStatus != null &&
                     this.WhiteListStatus.Equals(other.WhiteListStatus)
                 ) &&
                 (
                     this.ChallengeCancel == other.ChallengeCancel ||
                     this.ChallengeCancel != null &&
                     this.ChallengeCancel.Equals(other.ChallengeCancel)
                 ) &&
                 (
                     this.ChallengeIndicator == other.ChallengeIndicator ||
                     this.ChallengeIndicator != null &&
                     this.ChallengeIndicator.Equals(other.ChallengeIndicator)
                 ) &&
                 (
                     this.ExemptionIndicator == other.ExemptionIndicator ||
                     this.ExemptionIndicator != null &&
                     this.ExemptionIndicator.Equals(other.ExemptionIndicator)
                 ) &&
                 (
                     this.RiskScore == other.RiskScore ||
                     this.RiskScore != null &&
                     this.RiskScore.Equals(other.RiskScore)
                 ));
        }