public EzyApp getApp() { if (zone != null) { EzyAppManager appManager = zone.getAppManager(); EzyApp app = appManager.getApp(); return(app); } return(null); }
public override void handle(EzyArray data) { EzyZone zone = client.getZone(); EzyAppManager appManager = zone.getAppManager(); EzyApp app = newApp(zone, data); appManager.addApp(app); postHandle(app, data); logger.info("access app: " + app.getName() + " successfully"); }
public override void handle(EzyArray data) { EzyZone zone = client.getZone(); EzyAppManager appManager = zone.getAppManager(); int appId = data.get <int>(0); int reasonId = data.get <int>(1); EzyApp app = appManager.removeApp(appId); if (app != null) { postHandle(app, data); logger.info("user exit app: " + app + ", reason: " + reasonId); } }