Initial commit

This commit is contained in:
Naoyuki Kanezawa
2013-04-22 03:37:28 +09:00
commit 53f1f5b544
16 changed files with 1694 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package com.github.nkzawa.engineio.parser;
public class Packet {
public String type;
public String data;
public Packet(String type, String data) {
this.type = type;
this.data = data;
}
@Override
public String toString() {
return String.format("{\"type\": \"%s\", \"data\": \"%s\"}", this.type, this.data);
}
}