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

            return
                ((
                     ShowQuantityInsteadOfAmount == other.ShowQuantityInsteadOfAmount ||
                     ShowQuantityInsteadOfAmount != null &&
                     ShowQuantityInsteadOfAmount.Equals(other.ShowQuantityInsteadOfAmount)
                     ) &&
                 (
                     SupportDOM == other.SupportDOM ||
                     SupportDOM != null &&
                     SupportDOM.Equals(other.SupportDOM)
                 ) &&
                 (
                     SupportBrackets == other.SupportBrackets ||
                     SupportBrackets != null &&
                     SupportBrackets.Equals(other.SupportBrackets)
                 ) &&
                 (
                     SupportOrderBrackets == other.SupportOrderBrackets ||
                     SupportOrderBrackets != null &&
                     SupportOrderBrackets.Equals(other.SupportOrderBrackets)
                 ) &&
                 (
                     SupportPositionBrackets == other.SupportPositionBrackets ||
                     SupportPositionBrackets != null &&
                     SupportPositionBrackets.Equals(other.SupportPositionBrackets)
                 ) &&
                 (
                     SupportClosePosition == other.SupportClosePosition ||
                     SupportClosePosition != null &&
                     SupportClosePosition.Equals(other.SupportClosePosition)
                 ) &&
                 (
                     SupportEditAmount == other.SupportEditAmount ||
                     SupportEditAmount != null &&
                     SupportEditAmount.Equals(other.SupportEditAmount)
                 ) &&
                 (
                     SupportLevel2Data == other.SupportLevel2Data ||
                     SupportLevel2Data != null &&
                     SupportLevel2Data.Equals(other.SupportLevel2Data)
                 ) &&
                 (
                     SupportMultiposition == other.SupportMultiposition ||
                     SupportMultiposition != null &&
                     SupportMultiposition.Equals(other.SupportMultiposition)
                 ) &&
                 (
                     SupportPLUpdate == other.SupportPLUpdate ||
                     SupportPLUpdate != null &&
                     SupportPLUpdate.Equals(other.SupportPLUpdate)
                 ) &&
                 (
                     SupportReducePosition == other.SupportReducePosition ||
                     SupportReducePosition != null &&
                     SupportReducePosition.Equals(other.SupportReducePosition)
                 ) &&
                 (
                     SupportStopLimitOrders == other.SupportStopLimitOrders ||
                     SupportStopLimitOrders != null &&
                     SupportStopLimitOrders.Equals(other.SupportStopLimitOrders)
                 ) &&
                 (
                     SupportOrdersHistory == other.SupportOrdersHistory ||
                     SupportOrdersHistory != null &&
                     SupportOrdersHistory.Equals(other.SupportOrdersHistory)
                 ) &&
                 (
                     SupportExecutions == other.SupportExecutions ||
                     SupportExecutions != null &&
                     SupportExecutions.Equals(other.SupportExecutions)
                 ) &&
                 (
                     SupportDigitalSignature == other.SupportDigitalSignature ||
                     SupportDigitalSignature != null &&
                     SupportDigitalSignature.Equals(other.SupportDigitalSignature)
                 ));
        }