Search in sources :

Example 1 with EzyAppManager

use of com.tvd12.ezyfoxserver.client.manager.EzyAppManager in project ezyfox-server-android-client by youngmonkeys.

the class EzyAppAccessHandler method handle.

@Override
public void handle(EzyArray data) {
    EzyZone zone = client.getZone();
    EzyAppManager appManager = zone.getAppManager();
    EzyApp app = newApp(zone, data);
    appManager.addApp(app);
    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)

Example 2 with EzyAppManager

use of com.tvd12.ezyfoxserver.client.manager.EzyAppManager 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

EzyApp (com.tvd12.ezyfoxserver.client.entity.EzyApp)2 EzyZone (com.tvd12.ezyfoxserver.client.entity.EzyZone)2 EzyAppManager (com.tvd12.ezyfoxserver.client.manager.EzyAppManager)2