Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MsgType.Length != 0)
            {
                hash ^= MsgType.GetHashCode();
            }
            if (AccountStatusRequestId.Length != 0)
            {
                hash ^= AccountStatusRequestId.GetHashCode();
            }
            if (MarginReqmtRptType.Length != 0)
            {
                hash ^= MarginReqmtRptType.GetHashCode();
            }
            if (Account != 0UL)
            {
                hash ^= Account.GetHashCode();
            }
            hash ^= marginAmounts_.GetHashCode();
            if (RejectReason.Length != 0)
            {
                hash ^= RejectReason.GetHashCode();
            }
            if (Text.Length != 0)
            {
                hash ^= Text.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;
                if (OrderId != null)
                {
                    hashCode = hashCode * 59 + OrderId.GetHashCode();
                }

                if (UserId != null)
                {
                    hashCode = hashCode * 59 + UserId.GetHashCode();
                }

                if (Symbol != null)
                {
                    hashCode = hashCode * 59 + Symbol.GetHashCode();
                }

                if (Side != null)
                {
                    hashCode = hashCode * 59 + Side.GetHashCode();
                }

                if (OrderType != null)
                {
                    hashCode = hashCode * 59 + OrderType.GetHashCode();
                }

                if (Price != null)
                {
                    hashCode = hashCode * 59 + Price.GetHashCode();
                }

                if (TimeInForce != null)
                {
                    hashCode = hashCode * 59 + TimeInForce.GetHashCode();
                }

                if (OrderStatus != null)
                {
                    hashCode = hashCode * 59 + OrderStatus.GetHashCode();
                }

                if (LastExecTime != null)
                {
                    hashCode = hashCode * 59 + LastExecTime.GetHashCode();
                }

                if (LastExecPrice != null)
                {
                    hashCode = hashCode * 59 + LastExecPrice.GetHashCode();
                }

                if (LeavesQty != null)
                {
                    hashCode = hashCode * 59 + LeavesQty.GetHashCode();
                }

                if (CumExecQty != null)
                {
                    hashCode = hashCode * 59 + CumExecQty.GetHashCode();
                }

                if (CumExecValue != null)
                {
                    hashCode = hashCode * 59 + CumExecValue.GetHashCode();
                }

                if (CumExecFee != null)
                {
                    hashCode = hashCode * 59 + CumExecFee.GetHashCode();
                }

                if (RejectReason != null)
                {
                    hashCode = hashCode * 59 + RejectReason.GetHashCode();
                }

                if (OrderLinkId != null)
                {
                    hashCode = hashCode * 59 + OrderLinkId.GetHashCode();
                }

                if (CreatedAt != null)
                {
                    hashCode = hashCode * 59 + CreatedAt.GetHashCode();
                }

                if (UpdatedAt != null)
                {
                    hashCode = hashCode * 59 + UpdatedAt.GetHashCode();
                }

                return(hashCode);
            }
        }