Ejemplo n.º 1
0
        /// <summary>
        /// Equals
        /// </summary>
        /// <param name="o">object to compare</param>
        /// <returns></returns>
        public override bool Equals(Object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (!(o is KondutoOrder))
            {
                return(false);
            }

            KondutoOrder that = o as KondutoOrder;

            if (!object.Equals(Id, that.Id))
            {
                return(false);
            }
            if (!object.Equals(Recommendation, that.Recommendation))
            {
                return(false);
            }
            if (!object.Equals(Score, that.Score))
            {
                return(false);
            }

            if (!object.Equals(Visitor, that.Visitor))
            {
                return(false);
            }
            if (!object.Equals(Geolocation, that.Geolocation))
            {
                return(false);
            }
            if (!object.Equals(Timestamp, that.Timestamp))
            {
                return(false);
            }

            if (!object.Equals(Device, that.Device))
            {
                return(false);
            }
            if (!object.Equals(NavigationInfo, that.NavigationInfo))
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Equals
        /// </summary>
        /// <param name="o">object to compare</param>
        /// <returns></returns>
        public override bool Equals(Object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (!(o is KondutoOrder))
            {
                return(false);
            }

            KondutoOrder that = o as KondutoOrder;

            if (!object.Equals(BillingAddress, that.BillingAddress))
            {
                return(false);
            }
            if (!object.Equals(Currency, that.Currency))
            {
                return(false);
            }
            if (!object.Equals(Customer, that.Customer))
            {
                return(false);
            }
            if (!object.Equals(Geolocation, that.Geolocation))
            {
                return(false);
            }
            if (!object.Equals(Id, that.Id))
            {
                return(false);
            }
            if (!object.Equals(Installments, that.Installments))
            {
                return(false);
            }
            if (!object.Equals(Ip, that.Ip))
            {
                return(false);
            }
            if (!object.Equals(Recommendation, that.Recommendation))
            {
                return(false);
            }
            if (!object.Equals(Score, that.Score))
            {
                return(false);
            }

            if (!object.Equals(ShippingAddress, that.ShippingAddress))
            {
                return(false);
            }
            if (!object.Equals(ShippingAmount, that.ShippingAmount))
            {
                return(false);
            }
            if (!object.Equals(TaxAmount, that.TaxAmount))
            {
                return(false);
            }
            if (!object.Equals(Timestamp, that.Timestamp))
            {
                return(false);
            }

            if (!object.Equals(TotalAmount, that.TotalAmount))
            {
                return(false);
            }
            if (!object.Equals(Visitor, that.Visitor))
            {
                return(false);
            }

            if (!Payments.SequenceEqual <KondutoPayment>(that.Payments))
            {
                return(false);
            }
            if (!ShoppingCart.SequenceEqual <KondutoItem>(that.ShoppingCart))
            {
                return(false);
            }

            if (!object.Equals(Device, that.Device))
            {
                return(false);
            }
            if (!object.Equals(NavigationInfo, that.NavigationInfo))
            {
                return(false);
            }

            if (!object.Equals(Analyze, that.Analyze))
            {
                return(false);
            }

            if (!object.Equals(Travel, that.Travel))
            {
                return(false);
            }

            if (!object.Equals(PurchasedAt, that.PurchasedAt))
            {
                return(false);
            }
            if (!object.Equals(MessagesExchanged, that.MessagesExchanged))
            {
                return(false);
            }
            if (!object.Equals(FirstMessage, that.FirstMessage))
            {
                return(false);
            }

            return(true);
        }