use of com.tvd12.ezyfoxserver.response.EzyRequestPluginResponseParams in project ezyfox-server by youngmonkeys.
the class EzyPluginSendResponseImpl method newResponse.
protected EzyResponse newResponse(EzyData data) {
EzyPluginSetting setting = context.getPlugin().getSetting();
EzyRequestPluginResponseParams params = newResponseParams();
params.setPluginId(setting.getId());
params.setData(data);
return new EzyRequestPluginResponse(params);
}
use of com.tvd12.ezyfoxserver.response.EzyRequestPluginResponseParams in project ezyfox-server by youngmonkeys.
the class EzyRequestPluginResponseTest method test.
@Test
public void test() {
EzyArray data = EzyEntityFactory.EMPTY_ARRAY;
EzyRequestPluginResponseParams params = new EzyRequestPluginResponseParams();
params.setData(data);
params.setPluginId(1);
assert params.getData() == data;
assert params.getPluginId() == 1;
EzyRequestPluginResponse response = new EzyRequestPluginResponse(params);
assert response.getParams() == params;
assert response.serialize().size() >= 0;
response.release();
}
Aggregations