use of com.tvd12.ezyfoxserver.event.EzySimpleUserRemovedEvent in project ezyfox-server by youngmonkeys.
the class EzySimpleAppUserDelegate method handleUserRemovedEvent.
protected void handleUserRemovedEvent(EzyUser user, EzyConstant reason) {
EzyEvent event = new EzySimpleUserRemovedEvent(user, reason);
appContext.handleEvent(EzyEventType.USER_REMOVED, event);
}
use of com.tvd12.ezyfoxserver.event.EzySimpleUserRemovedEvent in project ezyfox-server by youngmonkeys.
the class EzyDisconnectEventImplTest method test.
@Test
public void test() {
EzyUser user = newUser();
EzyUserRemovedEvent event = new EzySimpleUserRemovedEvent(user, EzyDisconnectReason.IDLE);
assert event.getUser() == user;
assert event.getReason() == EzyDisconnectReason.IDLE;
}
Aggregations