Exemplo n.º 1
0
        /// <summary>
        /// Returns true if SimpleFixedPriceTradeInfo instances are equal
        /// </summary>
        /// <param name="other">Instance of SimpleFixedPriceTradeInfo to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SimpleFixedPriceTradeInfo other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     InputAddress == other.InputAddress ||
                     InputAddress != null &&
                     InputAddress.Equals(other.InputAddress)
                     ) &&
                 (
                     InputCoinType == other.InputCoinType ||
                     InputCoinType != null &&
                     InputCoinType.Equals(other.InputCoinType)
                 ) &&
                 (
                     InputAmount == other.InputAmount ||
                     InputAmount != null &&
                     InputAmount.Equals(other.InputAmount)
                 ) &&
                 (
                     OutputAddress == other.OutputAddress ||
                     OutputAddress != null &&
                     OutputAddress.Equals(other.OutputAddress)
                 ) &&
                 (
                     OutputCoinType == other.OutputCoinType ||
                     OutputCoinType != null &&
                     OutputCoinType.Equals(other.OutputCoinType)
                 ) &&
                 (
                     OutputAmount == other.OutputAmount ||
                     OutputAmount != null &&
                     OutputAmount.Equals(other.OutputAmount)
                 ) &&
                 (
                     RefundAddress == other.RefundAddress ||
                     RefundAddress != null &&
                     RefundAddress.Equals(other.RefundAddress)
                 ) &&
                 (
                     ExpirationTime == other.ExpirationTime ||
                     ExpirationTime != null &&
                     ExpirationTime.Equals(other.ExpirationTime)
                 ) &&
                 (
                     FlatTransactionFeeInInputCoinType == other.FlatTransactionFeeInInputCoinType ||
                     FlatTransactionFeeInInputCoinType != null &&
                     FlatTransactionFeeInInputCoinType.Equals(other.FlatTransactionFeeInInputCoinType)
                 ));
        }
        /// <summary>
        /// Returns true if InitiateTradeModel1 instances are equal
        /// </summary>
        /// <param name="other">Instance of InitiateTradeModel1 to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InitiateTradeModel1 other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     InputCoinType == other.InputCoinType ||
                     InputCoinType != null &&
                     InputCoinType.Equals(other.InputCoinType)
                     ) &&
                 (
                     OutputCoinType == other.OutputCoinType ||
                     OutputCoinType != null &&
                     OutputCoinType.Equals(other.OutputCoinType)
                 ) &&
                 (
                     OutputAddress == other.OutputAddress ||
                     OutputAddress != null &&
                     OutputAddress.Equals(other.OutputAddress)
                 ) &&
                 (
                     OutputMemo == other.OutputMemo ||
                     OutputMemo != null &&
                     OutputMemo.Equals(other.OutputMemo)
                 ) &&
                 (
                     RefundAddress == other.RefundAddress ||
                     RefundAddress != null &&
                     RefundAddress.Equals(other.RefundAddress)
                 ) &&
                 (
                     RefundMemo == other.RefundMemo ||
                     RefundMemo != null &&
                     RefundMemo.Equals(other.RefundMemo)
                 ) &&
                 (
                     InputAddressType == other.InputAddressType ||
                     InputAddressType != null &&
                     InputAddressType.Equals(other.InputAddressType)
                 ) &&
                 (
                     SessionToken == other.SessionToken ||
                     SessionToken != null &&
                     SessionToken.Equals(other.SessionToken)
                 ) &&
                 (
                     AffiliateId == other.AffiliateId ||
                     AffiliateId != null &&
                     AffiliateId.Equals(other.AffiliateId)
                 ));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Returns true if InitiateFixedPriceTradeModel1 instances are equal
        /// </summary>
        /// <param name="other">Instance of InitiateFixedPriceTradeModel1 to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InitiateFixedPriceTradeModel1 other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     InputCoinType == other.InputCoinType ||
                     InputCoinType != null &&
                     InputCoinType.Equals(other.InputCoinType)
                     ) &&
                 (
                     OutputCoinType == other.OutputCoinType ||
                     OutputCoinType != null &&
                     OutputCoinType.Equals(other.OutputCoinType)
                 ) &&
                 (
                     OutputAddress == other.OutputAddress ||
                     OutputAddress != null &&
                     OutputAddress.Equals(other.OutputAddress)
                 ) &&
                 (
                     DesiredOutputAmount == other.DesiredOutputAmount ||
                     DesiredOutputAmount != null &&
                     DesiredOutputAmount.Equals(other.DesiredOutputAmount)
                 ) &&
                 (
                     AllOrNothing == other.AllOrNothing ||
                     AllOrNothing != null &&
                     AllOrNothing.Equals(other.AllOrNothing)
                 ) &&
                 (
                     OutputMemo == other.OutputMemo ||
                     OutputMemo != null &&
                     OutputMemo.Equals(other.OutputMemo)
                 ) &&
                 (
                     RefundAddress == other.RefundAddress ||
                     RefundAddress != null &&
                     RefundAddress.Equals(other.RefundAddress)
                 ) &&
                 (
                     InputAddressType == other.InputAddressType ||
                     InputAddressType != null &&
                     InputAddressType.Equals(other.InputAddressType)
                 ) &&
                 (
                     RefundMemo == other.RefundMemo ||
                     RefundMemo != null &&
                     RefundMemo.Equals(other.RefundMemo)
                 ));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Returns true if SimpleTradeInfo instances are equal
        /// </summary>
        /// <param name="other">Instance of SimpleTradeInfo to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SimpleTradeInfo other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     InputAddress == other.InputAddress ||
                     InputAddress != null &&
                     InputAddress.Equals(other.InputAddress)
                     ) &&
                 (
                     InputMemo == other.InputMemo ||
                     InputMemo != null &&
                     InputMemo.Equals(other.InputMemo)
                 ) &&
                 (
                     InputCoinType == other.InputCoinType ||
                     InputCoinType != null &&
                     InputCoinType.Equals(other.InputCoinType)
                 ) &&
                 (
                     OutputAddress == other.OutputAddress ||
                     OutputAddress != null &&
                     OutputAddress.Equals(other.OutputAddress)
                 ) &&
                 (
                     OutputCoinType == other.OutputCoinType ||
                     OutputCoinType != null &&
                     OutputCoinType.Equals(other.OutputCoinType)
                 ) &&
                 (
                     RefundAddress == other.RefundAddress ||
                     RefundAddress != null &&
                     RefundAddress.Equals(other.RefundAddress)
                 ) &&
                 (
                     FlatTransactionFeeInInputCoinType == other.FlatTransactionFeeInInputCoinType ||
                     FlatTransactionFeeInInputCoinType != null &&
                     FlatTransactionFeeInInputCoinType.Equals(other.FlatTransactionFeeInInputCoinType)
                 ));
        }