Esempio n. 1
0
 public EzyApp getApp()
 {
     if (zone != null)
     {
         EzyAppManager appManager = zone.getAppManager();
         EzyApp        app        = appManager.getApp();
         return(app);
     }
     return(null);
 }
Esempio n. 2
0
        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);
            }
        }