use of com.tvd12.ezyfoxserver.response.EzyExitedAppParams in project ezyfox-server by youngmonkeys.
the class EzyExitedAppResponseTest method test.
@Test
public void test() {
EzySimpleAppSetting setting = new EzySimpleAppSetting();
EzyExitedAppParams params = new EzyExitedAppParams();
params.setReason(EzyUserRemoveReason.EXIT_APP);
params.setApp(setting);
EzyExitedAppResponse response = new EzyExitedAppResponse(params);
assert response.getParams() == params;
assert response.getCommand() == EzyCommand.APP_EXIT;
assert response.serialize().size() > 0;
assert params.getApp() == setting;
assert params.getReason() == EzyUserRemoveReason.EXIT_APP;
response.release();
}
use of com.tvd12.ezyfoxserver.response.EzyExitedAppParams in project ezyfox-server by youngmonkeys.
the class EzySimpleAppUserDelegate method newExitedAppResponse.
protected EzyResponse newExitedAppResponse(EzyConstant reason) {
EzyExitedAppParams params = new EzyExitedAppParams();
EzyAppSetting appSetting = appContext.getApp().getSetting();
params.setApp(appSetting);
params.setReason(reason);
return new EzyExitedAppResponse(params);
}
Aggregations