add comments

This commit is contained in:
Naoyuki Kanezawa
2013-05-08 01:10:05 +09:00
parent 8257f68bab
commit 4cd20b1b0a
4 changed files with 148 additions and 15 deletions

View File

@@ -16,13 +16,36 @@ public class Parser {
private static final Gson gson = new Gson();
private static final JsonParser parser = new JsonParser();
/**
* Packet type `connect`.
*/
public static final int CONNECT = 0;
/**
* Packet type `disconnect`.
*/
public static final int DISCONNECT = 1;
/**
* Packet type `event`.
*/
public static final int EVENT = 2;
/**
* Packet type `ack`.
*/
public static final int ACK = 3;
/**
* Packet type `error`.
*/
public static final int ERROR = 4;
public static int protocol = 1;
/**
* Packet types.
*/
public static List<String > types = new ArrayList<String>() {{
add("CONNECT");
add("DISCONNECT");