use of com.tvd12.ezyfoxserver.response.EzyDisconnectResponse in project ezyfox-server by youngmonkeys.
the class EzyCloseSessionImpl method newResponse.
protected EzyResponse newResponse(EzyConstant reason) {
EzyDisconnectParams params = new EzyDisconnectParams();
params.setReason(reason);
return new EzyDisconnectResponse(params);
}
use of com.tvd12.ezyfoxserver.response.EzyDisconnectResponse in project ezyfox-server by youngmonkeys.
the class EzyDisconnectResponseTest method test.
@Test
public void test() {
EzyDisconnectParams params = new EzyDisconnectParams();
params.setReason(EzyDisconnectReason.ADMIN_BAN);
assert params.getReason() == EzyDisconnectReason.ADMIN_BAN;
EzyDisconnectResponse response = new EzyDisconnectResponse(params);
response.serialize();
response.release();
}
Aggregations