public EzySimpleZone(EzyClient client, int id, String name) { this.id = id; this.name = name; this.client = client; this.appManager = new EzySimpleAppManager(name); this.pluginManager = new EzySimplePluginManager(name); }
public EzyApp getAppById(int appId) { if (zone != null) { EzyAppManager appManager = zone.getAppManager(); EzyApp app = appManager.getAppById(appId); 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); } }