/// <summary>
        ///     Returns true if AllResponseTypesExample instances are equal
        /// </summary>
        /// <param name="other">Instance of AllResponseTypesExample to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(AllResponseTypesExample other)
        {
            // credit: http://stackoverflow.com/a/10454552/677735
            if (other == null)
            {
                return(false);
            }

            return((OpTypes == other.OpTypes || OpTypes != null && OpTypes.Equals(other.OpTypes)) &&
                   (MarketChangeMessage == other.MarketChangeMessage || MarketChangeMessage != null && MarketChangeMessage.Equals(other.MarketChangeMessage)) &&
                   (Connection == other.Connection || Connection != null && Connection.Equals(other.Connection)) &&
                   (OrderChangeMessage == other.OrderChangeMessage || OrderChangeMessage != null && OrderChangeMessage.Equals(other.OrderChangeMessage)) &&
                   (Status == other.Status || Status != null && Status.Equals(other.Status)));
        }
示例#2
0
        /// <summary>
        ///     Returns true if AllRequestTypesExample instances are equal
        /// </summary>
        /// <param name="other">Instance of AllRequestTypesExample to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(AllRequestTypesExample other)
        {
            // credit: http://stackoverflow.com/a/10454552/677735
            if (other == null)
            {
                return(false);
            }

            return((OpTypes == other.OpTypes || OpTypes != null && OpTypes.Equals(other.OpTypes)) &&
                   (Heartbeat == other.Heartbeat || Heartbeat != null && Heartbeat.Equals(other.Heartbeat)) &&
                   (OrderSubscriptionMessage == other.OrderSubscriptionMessage ||
                    OrderSubscriptionMessage != null && OrderSubscriptionMessage.Equals(other.OrderSubscriptionMessage)) &&
                   (MarketSubscription == other.MarketSubscription || MarketSubscription != null && MarketSubscription.Equals(other.MarketSubscription)) &&
                   (Authentication == other.Authentication || Authentication != null && Authentication.Equals(other.Authentication)));
        }