public EzySimpleHandlerManager(EzyClient client)
 {
     this.client                         = client;
     this.pingSchedule                   = client.getPingSchedule();
     this.eventHandlers                  = newEventHandlers();
     this.dataHandlers                   = newDataHandlers();
     this.appDataHandlersByAppName       = new Dictionary <String, EzyAppDataHandlers>();
     this.pluginDataHandlersByPluginName = new Dictionary <String, EzyPluginDataHandlers>();
 }
        private EzyDataHandlers newDataHandlers()
        {
            EzyDataHandlers handlers = new EzyDataHandlers(client);

            handlers.addHandler(EzyCommand.PONG, new EzyPongHandler());
            handlers.addHandler(EzyCommand.LOGIN, new EzyLoginSuccessHandler());
            handlers.addHandler(EzyCommand.LOGIN_ERROR, new EzyLoginErrorHandler());
            handlers.addHandler(EzyCommand.APP_ACCESS, new EzyAppAccessHandler());
            handlers.addHandler(EzyCommand.APP_REQUEST, new EzyAppResponseHandler());
            handlers.addHandler(EzyCommand.APP_EXIT, new EzyAppExitHandler());
            handlers.addHandler(EzyCommand.PLUGIN_INFO, new EzyPluginInfoHandler());
            handlers.addHandler(EzyCommand.PLUGIN_REQUEST, new EzyPluginResponseHandler());
            handlers.addHandler(EzyCommand.UDP_HANDSHAKE, new EzyUdpHandshakeHandler());
            return(handlers);
        }
 public void setHandlerManager(EzyHandlerManager handlerManager)
 {
     this.handlerManager = handlerManager;
     this.dataHandlers   = handlerManager.getDataHandlers();
     this.eventHandlers  = handlerManager.getEventHandlers();
 }