001    /**
002     * Copyright 2007 Mike Kroutikov.
003     *
004     * This program is free software; you can redistribute it and/or modify
005     *   it under the terms of the Lesser GNU General Public License as 
006     *   published by the Free Software Foundation; either version 3 of
007     *   the License, or (at your option) any later version.
008     *
009     *   This program is distributed in the hope that it will be useful,
010     *   but WITHOUT ANY WARRANTY; without even the implied warranty of
011     *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
012     *   Lesser GNU General Public License for more details.
013     *
014     *   You should have received a copy of the Lesser GNU General Public License
015     *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
016     */
017    
018    package org.otfeed.protocol;
019    
020    /**
021     * Enumerates types of data objects received from the server.
022     */
023    public enum DataEnum {
024    
025            EOD              (0),
026            QUOTE            (1),
027            MMQUOTE          (2),
028            TRADE            (3),
029            BBO              (4),
030            BOOK_CANCEL      (5),
031            BOOK_CHANGE      (6),
032            BOOK_DELETE      (7),
033            BOOK_EXECUTE     (8),
034            BOOK_ORDER       (9),
035            BOOK_PRICE_LEVEL (10),
036            BOOK_PURGE       (11),
037            BOOK_REPLACE     (12),
038            HALT             (13),
039            SPLIT            (14),
040            DIVIDEND         (15),
041            SYMBOL_CHANGE    (16),
042            EQUITY_INIT      (17),
043            OPTION_INIT      (18),
044            OHLC             (50),
045            OHL_TODAY        (51);
046    
047            public final int code;
048            private DataEnum(int code) {
049                    this.code = code;
050            }
051    }