Search in sources :

Example 26 with EzyZone

use of com.tvd12.ezyfoxserver.client.entity.EzyZone in project ezyfox-server-android-client by youngmonkeys.

the class EzyAppExitHandler method handle.

@Override
public void handle(EzyArray data) {
    EzyZone zone = client.getZone();
    EzyAppManager appManager = zone.getAppManager();
    int appId = data.get(0, int.class);
    int reasonId = data.get(1, int.class);
    EzyApp app = appManager.removeApp(appId);
    EzyLogger.info("user exit app: " + app + " reason: " + reasonId);
    postHandle(app, data);
}
Also used : EzyZone(com.tvd12.ezyfoxserver.client.entity.EzyZone) EzyApp(com.tvd12.ezyfoxserver.client.entity.EzyApp) EzyAppManager(com.tvd12.ezyfoxserver.client.manager.EzyAppManager)

Aggregations

EzyZone (com.tvd12.ezyfoxserver.EzyZone)21 EzyZoneContext (com.tvd12.ezyfoxserver.context.EzyZoneContext)20 Test (org.testng.annotations.Test)18 EzyZoneUserManager (com.tvd12.ezyfoxserver.wrapper.EzyZoneUserManager)13 EzyServer (com.tvd12.ezyfoxserver.EzyServer)11 EzyServerContext (com.tvd12.ezyfoxserver.context.EzyServerContext)11 EzySessionManager (com.tvd12.ezyfoxserver.wrapper.EzySessionManager)11 EzyCloseSession (com.tvd12.ezyfoxserver.command.EzyCloseSession)10 EzyController (com.tvd12.ezyfoxserver.controller.EzyController)10 EzyStreamingController (com.tvd12.ezyfoxserver.controller.EzyStreamingController)10 EzyAbstractSession (com.tvd12.ezyfoxserver.entity.EzyAbstractSession)10 EzyInterceptor (com.tvd12.ezyfoxserver.interceptor.EzyInterceptor)10 EzyLoggerSetting (com.tvd12.ezyfoxserver.setting.EzyLoggerSetting)10 EzySessionManagementSetting (com.tvd12.ezyfoxserver.setting.EzySessionManagementSetting)10 EzySettings (com.tvd12.ezyfoxserver.setting.EzySettings)10 EzyChannel (com.tvd12.ezyfoxserver.socket.EzyChannel)10 EzyServerControllers (com.tvd12.ezyfoxserver.wrapper.EzyServerControllers)10 BaseTest (com.tvd12.test.base.BaseTest)9 BaseCoreTest (com.tvd12.ezyfoxserver.testing.BaseCoreTest)8 EzyServerReadyEvent (com.tvd12.ezyfoxserver.event.EzyServerReadyEvent)6