コード例 #1
0
        public override int GetHashCode()
        {
            int hashCode = 870378021;

            if (CatalogObjectIds != null)
            {
                hashCode += CatalogObjectIds.GetHashCode();
            }

            if (LocationIds != null)
            {
                hashCode += LocationIds.GetHashCode();
            }

            if (Types != null)
            {
                hashCode += Types.GetHashCode();
            }

            if (States != null)
            {
                hashCode += States.GetHashCode();
            }

            if (UpdatedAfter != null)
            {
                hashCode += UpdatedAfter.GetHashCode();
            }

            if (UpdatedBefore != null)
            {
                hashCode += UpdatedBefore.GetHashCode();
            }

            if (Cursor != null)
            {
                hashCode += Cursor.GetHashCode();
            }

            return(hashCode);
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is BatchRetrieveInventoryChangesRequest other &&
                   ((CatalogObjectIds == null && other.CatalogObjectIds == null) || (CatalogObjectIds?.Equals(other.CatalogObjectIds) == true)) &&
                   ((LocationIds == null && other.LocationIds == null) || (LocationIds?.Equals(other.LocationIds) == true)) &&
                   ((Types == null && other.Types == null) || (Types?.Equals(other.Types) == true)) &&
                   ((States == null && other.States == null) || (States?.Equals(other.States) == true)) &&
                   ((UpdatedAfter == null && other.UpdatedAfter == null) || (UpdatedAfter?.Equals(other.UpdatedAfter) == true)) &&
                   ((UpdatedBefore == null && other.UpdatedBefore == null) || (UpdatedBefore?.Equals(other.UpdatedBefore) == true)) &&
                   ((Cursor == null && other.Cursor == null) || (Cursor?.Equals(other.Cursor) == true)));
        }