public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (CryptoCurrency != null ? CryptoCurrency.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Hash != null ? Hash.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UserId.GetHashCode();
         hashCode = (hashCode * 397) ^ (OutputAddress != null ? OutputAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Type;
         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 (InputAddress != null)
         {
             hashCode = hashCode * 59 + InputAddress.GetHashCode();
         }
         if (InputCoinType != null)
         {
             hashCode = hashCode * 59 + InputCoinType.GetHashCode();
         }
         if (InputAmount != null)
         {
             hashCode = hashCode * 59 + InputAmount.GetHashCode();
         }
         if (OutputAddress != null)
         {
             hashCode = hashCode * 59 + OutputAddress.GetHashCode();
         }
         if (OutputCoinType != null)
         {
             hashCode = hashCode * 59 + OutputCoinType.GetHashCode();
         }
         if (OutputAmount != null)
         {
             hashCode = hashCode * 59 + OutputAmount.GetHashCode();
         }
         if (RefundAddress != null)
         {
             hashCode = hashCode * 59 + RefundAddress.GetHashCode();
         }
         if (ExpirationTime != null)
         {
             hashCode = hashCode * 59 + ExpirationTime.GetHashCode();
         }
         if (FlatTransactionFeeInInputCoinType != null)
         {
             hashCode = hashCode * 59 + FlatTransactionFeeInInputCoinType.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <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 (InputCoinType != null)
         {
             hashCode = hashCode * 59 + InputCoinType.GetHashCode();
         }
         if (OutputCoinType != null)
         {
             hashCode = hashCode * 59 + OutputCoinType.GetHashCode();
         }
         if (OutputAddress != null)
         {
             hashCode = hashCode * 59 + OutputAddress.GetHashCode();
         }
         if (OutputMemo != null)
         {
             hashCode = hashCode * 59 + OutputMemo.GetHashCode();
         }
         if (RefundAddress != null)
         {
             hashCode = hashCode * 59 + RefundAddress.GetHashCode();
         }
         if (RefundMemo != null)
         {
             hashCode = hashCode * 59 + RefundMemo.GetHashCode();
         }
         if (InputAddressType != null)
         {
             hashCode = hashCode * 59 + InputAddressType.GetHashCode();
         }
         if (SessionToken != null)
         {
             hashCode = hashCode * 59 + SessionToken.GetHashCode();
         }
         if (AffiliateId != null)
         {
             hashCode = hashCode * 59 + AffiliateId.GetHashCode();
         }
         return(hashCode);
     }
 }
Пример #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 (InputCoinType != null)
         {
             hashCode = hashCode * 59 + InputCoinType.GetHashCode();
         }
         if (OutputCoinType != null)
         {
             hashCode = hashCode * 59 + OutputCoinType.GetHashCode();
         }
         if (OutputAddress != null)
         {
             hashCode = hashCode * 59 + OutputAddress.GetHashCode();
         }
         if (DesiredOutputAmount != null)
         {
             hashCode = hashCode * 59 + DesiredOutputAmount.GetHashCode();
         }
         if (AllOrNothing != null)
         {
             hashCode = hashCode * 59 + AllOrNothing.GetHashCode();
         }
         if (OutputMemo != null)
         {
             hashCode = hashCode * 59 + OutputMemo.GetHashCode();
         }
         if (RefundAddress != null)
         {
             hashCode = hashCode * 59 + RefundAddress.GetHashCode();
         }
         if (InputAddressType != null)
         {
             hashCode = hashCode * 59 + InputAddressType.GetHashCode();
         }
         if (RefundMemo != null)
         {
             hashCode = hashCode * 59 + RefundMemo.GetHashCode();
         }
         return(hashCode);
     }
 }
Пример #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Kind != 0)
            {
                hash ^= Kind.GetHashCode();
            }
            if (input_ != null)
            {
                hash ^= Input.GetHashCode();
            }
            if (filter_ != null)
            {
                hash ^= Filter.GetHashCode();
            }
            if (output_ != null)
            {
                hash ^= Output.GetHashCode();
            }
            if (convDesc_ != null)
            {
                hash ^= ConvDesc.GetHashCode();
            }
            if (ConvScale != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ConvScale);
            }
            if (SideValueScale != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SideValueScale);
            }
            if (Activation != 0)
            {
                hash ^= Activation.GetHashCode();
            }
            if (InputAddress != 0L)
            {
                hash ^= InputAddress.GetHashCode();
            }
            if (FilterAddress != 0L)
            {
                hash ^= FilterAddress.GetHashCode();
            }
            if (OutputAddress != 0L)
            {
                hash ^= OutputAddress.GetHashCode();
            }
            if (BiasAddress != 0L)
            {
                hash ^= BiasAddress.GetHashCode();
            }
            if (SideInputAddress != 0L)
            {
                hash ^= SideInputAddress.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #6
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 (TransactionId != null)
         {
             hashCode = hashCode * 59 + TransactionId.GetHashCode();
         }
         if (TransactionProcessingState != null)
         {
             hashCode = hashCode * 59 + TransactionProcessingState.GetHashCode();
         }
         if (InputFirstSeenTime != null)
         {
             hashCode = hashCode * 59 + InputFirstSeenTime.GetHashCode();
         }
         if (InputFullyConfirmedTime != null)
         {
             hashCode = hashCode * 59 + InputFullyConfirmedTime.GetHashCode();
         }
         if (InputNumberOfConfirmations != null)
         {
             hashCode = hashCode * 59 + InputNumberOfConfirmations.GetHashCode();
         }
         if (InputAmount != null)
         {
             hashCode = hashCode * 59 + InputAmount.GetHashCode();
         }
         if (InputTransactionHash != null)
         {
             hashCode = hashCode * 59 + InputTransactionHash.GetHashCode();
         }
         if (InputCoinType != null)
         {
             hashCode = hashCode * 59 + InputCoinType.GetHashCode();
         }
         if (InputWalletType != null)
         {
             hashCode = hashCode * 59 + InputWalletType.GetHashCode();
         }
         if (InputAddress != null)
         {
             hashCode = hashCode * 59 + InputAddress.GetHashCode();
         }
         if (PrimarySourceAddress != null)
         {
             hashCode = hashCode * 59 + PrimarySourceAddress.GetHashCode();
         }
         if (OutputInitiationTime != null)
         {
             hashCode = hashCode * 59 + OutputInitiationTime.GetHashCode();
         }
         if (OutputAmount != null)
         {
             hashCode = hashCode * 59 + OutputAmount.GetHashCode();
         }
         if (OutputTransactionHash != null)
         {
             hashCode = hashCode * 59 + OutputTransactionHash.GetHashCode();
         }
         if (OutputCoinType != null)
         {
             hashCode = hashCode * 59 + OutputCoinType.GetHashCode();
         }
         if (OutputWalletType != null)
         {
             hashCode = hashCode * 59 + OutputWalletType.GetHashCode();
         }
         if (OutputAddress != null)
         {
             hashCode = hashCode * 59 + OutputAddress.GetHashCode();
         }
         if (OutputMemo != null)
         {
             hashCode = hashCode * 59 + OutputMemo.GetHashCode();
         }
         if (OutputAddressNickname != null)
         {
             hashCode = hashCode * 59 + OutputAddressNickname.GetHashCode();
         }
         if (LastModifiedTime != null)
         {
             hashCode = hashCode * 59 + LastModifiedTime.GetHashCode();
         }
         if (RequiredNumberOfInputConfirmations != null)
         {
             hashCode = hashCode * 59 + RequiredNumberOfInputConfirmations.GetHashCode();
         }
         if (InputUsdEquivalent != null)
         {
             hashCode = hashCode * 59 + InputUsdEquivalent.GetHashCode();
         }
         if (DelegationId != null)
         {
             hashCode = hashCode * 59 + DelegationId.GetHashCode();
         }
         if (VestsDelegated != null)
         {
             hashCode = hashCode * 59 + VestsDelegated.GetHashCode();
         }
         if (SteemPowerDelegated != null)
         {
             hashCode = hashCode * 59 + SteemPowerDelegated.GetHashCode();
         }
         if (SteemPowerDelegatee != null)
         {
             hashCode = hashCode * 59 + SteemPowerDelegatee.GetHashCode();
         }
         if (DelegationExtensionDuration != null)
         {
             hashCode = hashCode * 59 + DelegationExtensionDuration.GetHashCode();
         }
         return(hashCode);
     }
 }