mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 08:18:50 +00:00
test[protocol]: revert test protocol
This commit is contained in:
1 parent
730cc8a990
commit
9d17bd23de
2 files changed
+14
No files matched your search
@@ -24,12 +24,19 @@ import java.util.Objects;
|
|||||||
*/
|
*/
|
||||||
public class ObjectA implements IPacket {
|
public class ObjectA implements IPacket {
|
||||||
|
|
||||||
|
public static final transient short PROTOCOL_ID = 102;
|
||||||
|
|
||||||
private int a;
|
private int a;
|
||||||
|
|
||||||
private Map<Integer, String> m;
|
private Map<Integer, String> m;
|
||||||
|
|
||||||
private ObjectB objectB;
|
private ObjectB objectB;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public short protocolId() {
|
||||||
|
return PROTOCOL_ID;
|
||||||
|
}
|
||||||
|
|
||||||
public int getA() {
|
public int getA() {
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,8 +23,15 @@ import java.util.Objects;
|
|||||||
*/
|
*/
|
||||||
public class ObjectB implements IPacket {
|
public class ObjectB implements IPacket {
|
||||||
|
|
||||||
|
public static final transient short PROTOCOL_ID = 103;
|
||||||
|
|
||||||
private boolean flag;
|
private boolean flag;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public short protocolId() {
|
||||||
|
return PROTOCOL_ID;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isFlag() {
|
public boolean isFlag() {
|
||||||
return flag;
|
return flag;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user