コード例 #1
0
        /// <summary>
        /// Returns true if Model3dsData instances are equal
        /// </summary>
        /// <param name="other">Instance of Model3dsData to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ThreeDSEnrollment other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Downgraded == other.Downgraded ||
                     Downgraded != null &&
                     Downgraded.Equals(other.Downgraded)
                     ) &&
                 (
                     Enrolled == other.Enrolled ||
                     Enrolled != null &&
                     Enrolled.Equals(other.Enrolled)
                 ) &&
                 (
                     SignatureValid == other.SignatureValid ||
                     SignatureValid != null &&
                     SignatureValid.Equals(other.SignatureValid)
                 ) &&
                 (
                     AuthenticationResponse == other.AuthenticationResponse ||
                     AuthenticationResponse != null &&
                     AuthenticationResponse.Equals(other.AuthenticationResponse)
                 ) &&
                 (
                     Cryptogram == other.Cryptogram ||
                     Cryptogram != null &&
                     Cryptogram.Equals(other.Cryptogram)
                 ) &&
                 (
                     Xid == other.Xid ||
                     Xid != null &&
                     Xid.Equals(other.Xid)
                 ) &&
                 (
                     Version == other.Version ||
                     Version != null &&
                     Version.Equals(other.Version)
                 ));
        }
コード例 #2
0
        /// <summary>
        /// Returns true if DecryptedPaymentData instances are equal
        /// </summary>
        /// <param name="other">Instance of DecryptedPaymentData to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DecryptedPaymentData other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     CardholderName == other.CardholderName ||
                     CardholderName != null &&
                     CardholderName.Equals(other.CardholderName)
                     ) &&
                 (
                     Cryptogram == other.Cryptogram ||
                     Cryptogram != null &&
                     Cryptogram.Equals(other.Cryptogram)
                 ) &&
                 (
                     Dpan == other.Dpan ||
                     Dpan != null &&
                     Dpan.Equals(other.Dpan)
                 ) &&
                 (
                     Eci == other.Eci ||
                     Eci != null &&
                     Eci.Equals(other.Eci)
                 ) &&
                 (
                     ExpiryDate == other.ExpiryDate ||
                     ExpiryDate != null &&
                     ExpiryDate.Equals(other.ExpiryDate)
                 ));
        }