Search in sources :

Example 1 with EzyDisconnectionHandler

use of com.tvd12.ezyfoxserver.client.handler.EzyDisconnectionHandler in project ezyfox-server-android-client by youngmonkeys.

the class EzySimpleHandlerManager method newEventHandlers.

private EzyEventHandlers newEventHandlers() {
    EzyEventHandlers handlers = new EzyEventHandlers(client, pingSchedule);
    handlers.addHandler(EzyEventType.CONNECTION_SUCCESS, new EzyConnectionSuccessHandler());
    handlers.addHandler(EzyEventType.CONNECTION_FAILURE, new EzyConnectionFailureHandler());
    handlers.addHandler(EzyEventType.DISCONNECTION, new EzyDisconnectionHandler());
    return handlers;
}
Also used : EzyEventHandlers(com.tvd12.ezyfoxserver.client.handler.EzyEventHandlers) EzyDisconnectionHandler(com.tvd12.ezyfoxserver.client.handler.EzyDisconnectionHandler) EzyConnectionFailureHandler(com.tvd12.ezyfoxserver.client.handler.EzyConnectionFailureHandler) EzyConnectionSuccessHandler(com.tvd12.ezyfoxserver.client.handler.EzyConnectionSuccessHandler)

Aggregations

EzyConnectionFailureHandler (com.tvd12.ezyfoxserver.client.handler.EzyConnectionFailureHandler)1 EzyConnectionSuccessHandler (com.tvd12.ezyfoxserver.client.handler.EzyConnectionSuccessHandler)1 EzyDisconnectionHandler (com.tvd12.ezyfoxserver.client.handler.EzyDisconnectionHandler)1 EzyEventHandlers (com.tvd12.ezyfoxserver.client.handler.EzyEventHandlers)1