예제 #1
0
 /// <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 (Returnmac != null)
         {
             hashCode = hashCode * 59 + Returnmac.GetHashCode();
         }
         if (HostedCheckoutId != null)
         {
             hashCode = hashCode * 59 + HostedCheckoutId.GetHashCode();
         }
         if (InvalidTokens != null)
         {
             hashCode = hashCode * 59 + InvalidTokens.GetHashCode();
         }
         if (MerchantReference != null)
         {
             hashCode = hashCode * 59 + MerchantReference.GetHashCode();
         }
         if (PartialRedirectUrl != null)
         {
             hashCode = hashCode * 59 + PartialRedirectUrl.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #2
0
 /// <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 (Returnmac != null)
         {
             hashCode = hashCode * 59 + Returnmac.GetHashCode();
         }
         if (RedirectURL != null)
         {
             hashCode = hashCode * 59 + RedirectURL.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #3
0
        /// <summary>
        /// Returns true if CreateHostedCheckoutResponse instances are equal
        /// </summary>
        /// <param name="other">Instance of CreateHostedCheckoutResponse to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(CreateHostedCheckoutResponse other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Returnmac == other.Returnmac ||
                     Returnmac != null &&
                     Returnmac.Equals(other.Returnmac)
                     ) &&
                 (
                     HostedCheckoutId == other.HostedCheckoutId ||
                     HostedCheckoutId != null &&
                     HostedCheckoutId.Equals(other.HostedCheckoutId)
                 ) &&
                 (
                     InvalidTokens == other.InvalidTokens ||
                     InvalidTokens != null &&
                     InvalidTokens.SequenceEqual(other.InvalidTokens)
                 ) &&
                 (
                     MerchantReference == other.MerchantReference ||
                     MerchantReference != null &&
                     MerchantReference.Equals(other.MerchantReference)
                 ) &&
                 (
                     PartialRedirectUrl == other.PartialRedirectUrl ||
                     PartialRedirectUrl != null &&
                     PartialRedirectUrl.Equals(other.PartialRedirectUrl)
                 ));
        }
예제 #4
0
        /// <summary>
        /// Returns true if RedirectDataBase instances are equal
        /// </summary>
        /// <param name="other">Instance of RedirectDataBase to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(RedirectDataBase other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Returnmac == other.Returnmac ||
                     Returnmac != null &&
                     Returnmac.Equals(other.Returnmac)
                     ) &&
                 (
                     RedirectURL == other.RedirectURL ||
                     RedirectURL != null &&
                     RedirectURL.Equals(other.RedirectURL)
                 ));
        }