Beispiel #1
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                hash = hash * 23 + Status.GetHashCode();
                hash = hash * 23 + Amount.GetHashCode();
                hash = hash * 23 + Currency.GetHashCode();
                hash = hash * 23 + Description.GetHashCode();
                hash = hash * 23 + Capture.GetHashCode();
                hash = hash * 23 + Authorized.GetHashCode();
                hash = hash * 23 + Reversed.GetHashCode();
                hash = hash * 23 + Paid.GetHashCode();
                hash = hash * 23 + Transaction.GetHashCode();
                hash = hash * 23 + Card.GetHashCode();
                hash = hash * 23 + Refunded.GetHashCode();
                hash = hash * 23 + Refunds.GetHashCode();
                hash = hash * 23 + FailureCode.GetHashCode();
                hash = hash * 23 + FailureMessage.GetHashCode();
                hash = hash * 23 + Customer.GetHashCode();
                hash = hash * 23 + IP.GetHashCode();
                hash = hash * 23 + Dispute.GetHashCode();
                hash = hash * 23 + ReturnURI.GetHashCode();
                hash = hash * 23 + AuthorizeURI.GetHashCode();

                return(hash);
            }
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            var hashCode = 903062700;

            hashCode = hashCode * -1521134295 + Paid.GetHashCode();
            hashCode = hashCode * -1521134295 + Salary.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Instructor> .Default.GetHashCode(Instructor);

            return(hashCode);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                if (Recipient != default(string))
                {
                    hash = hash * 23 + Recipient.GetHashCode();
                }
                if (BankAccount != default(BankAccount))
                {
                    hash = hash * 23 + BankAccount.GetHashCode();
                }
                if (Sent != default(bool))
                {
                    hash = hash * 23 + Sent.GetHashCode();
                }
                if (Paid != default(bool))
                {
                    hash = hash * 23 + Paid.GetHashCode();
                }
                if (Fee != default(long))
                {
                    hash = hash * 23 + Fee.GetHashCode();
                }
                if (Amount != default(long))
                {
                    hash = hash * 23 + Amount.GetHashCode();
                }
                if (Currency != default(string))
                {
                    hash = hash * 23 + Currency.GetHashCode();
                }
                if (FailFast != default(bool))
                {
                    hash = hash * 23 + FailFast.GetHashCode();
                }
                if (FailureCode != default(string))
                {
                    hash = hash * 23 + FailureCode.GetHashCode();
                }
                if (FailureMessage != default(string))
                {
                    hash = hash * 23 + FailureMessage.GetHashCode();
                }
                if (Transaction != default(string))
                {
                    hash = hash * 23 + Transaction.GetHashCode();
                }

                return(hash);
            }
        }
Beispiel #4
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 (Agent != null)
         {
             hashCode = hashCode * 59 + Agent.GetHashCode();
         }
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (UserId != null)
         {
             hashCode = hashCode * 59 + UserId.GetHashCode();
         }
         if (CreatedAt != null)
         {
             hashCode = hashCode * 59 + CreatedAt.GetHashCode();
         }
         if (LegacyProfile != null)
         {
             hashCode = hashCode * 59 + LegacyProfile.GetHashCode();
         }
         if (Suspended != null)
         {
             hashCode = hashCode * 59 + Suspended.GetHashCode();
         }
         if (Paid != null)
         {
             hashCode = hashCode * 59 + Paid.GetHashCode();
         }
         if (Migrated != null)
         {
             hashCode = hashCode * 59 + Migrated.GetHashCode();
         }
         if (Legacy != null)
         {
             hashCode = hashCode * 59 + Legacy.GetHashCode();
         }
         return(hashCode);
     }
 }
Beispiel #5
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                hash = hash * 23 + Recipient.GetHashCode();
                hash = hash * 23 + BankAccount.GetHashCode();
                hash = hash * 23 + Sent.GetHashCode();
                hash = hash * 23 + Paid.GetHashCode();
                hash = hash * 23 + Fee.GetHashCode();
                hash = hash * 23 + Amount.GetHashCode();
                hash = hash * 23 + Currency.GetHashCode();
                hash = hash * 23 + FailureCode.GetHashCode();
                hash = hash * 23 + FailureMessage.GetHashCode();
                hash = hash * 23 + Transaction.GetHashCode();

                return(hash);
            }
        }
Beispiel #6
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                if (Status != default(ChargeStatus))
                {
                    hash = hash * 23 + Status.GetHashCode();
                }
                if (Amount != default(long))
                {
                    hash = hash * 23 + Amount.GetHashCode();
                }
                if (Currency != default(string))
                {
                    hash = hash * 23 + Currency.GetHashCode();
                }
                if (Description != default(string))
                {
                    hash = hash * 23 + Description.GetHashCode();
                }
                if (Metadata != default(IDictionary <string, object>))
                {
                    hash = hash * 23 + Metadata.GetHashCode();
                }
                if (Capture != default(bool))
                {
                    hash = hash * 23 + Capture.GetHashCode();
                }
                if (Authorized != default(bool))
                {
                    hash = hash * 23 + Authorized.GetHashCode();
                }
                if (Reversed != default(bool))
                {
                    hash = hash * 23 + Reversed.GetHashCode();
                }
                if (Paid != default(bool))
                {
                    hash = hash * 23 + Paid.GetHashCode();
                }
                if (Transaction != default(string))
                {
                    hash = hash * 23 + Transaction.GetHashCode();
                }
                if (SourceOfFund != default(SourceOfFunds))
                {
                    hash = hash * 23 + SourceOfFund.GetHashCode();
                }
                if (Card != default(Card))
                {
                    hash = hash * 23 + Card.GetHashCode();
                }
                if (Refunded != default(long))
                {
                    hash = hash * 23 + Refunded.GetHashCode();
                }
                if (Refunds != default(ScopedList <Refund>))
                {
                    hash = hash * 23 + Refunds.GetHashCode();
                }
                if (FailureCode != default(string))
                {
                    hash = hash * 23 + FailureCode.GetHashCode();
                }
                if (FailureMessage != default(string))
                {
                    hash = hash * 23 + FailureMessage.GetHashCode();
                }
                if (Customer != default(string))
                {
                    hash = hash * 23 + Customer.GetHashCode();
                }
                if (IP != default(string))
                {
                    hash = hash * 23 + IP.GetHashCode();
                }
                if (Dispute != default(Dispute))
                {
                    hash = hash * 23 + Dispute.GetHashCode();
                }
                if (ReturnURI != default(string))
                {
                    hash = hash * 23 + ReturnURI.GetHashCode();
                }
                if (AuthorizeURI != default(string))
                {
                    hash = hash * 23 + AuthorizeURI.GetHashCode();
                }
                if (Offsite != default(OffsiteTypes))
                {
                    hash = hash * 23 + Offsite.GetHashCode();
                }
                if (InstallmentTerms != default(int))
                {
                    hash = hash * 23 + InstallmentTerms.GetHashCode();
                }

                return(hash);
            }
        }
Beispiel #7
0
 public override int GetHashCode()
 {
     return(CertificateCode.GetHashCode() ^ Sum.GetHashCode() ^ Used.GetHashCode() * 123 ^ Paid.GetHashCode() * 321 ^ Enable.GetHashCode() * 323);
 }