コード例 #1
0
 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);
 }
コード例 #2
0
 public EzyApp getAppById(int appId)
 {
     if (zone != null)
     {
         EzyAppManager appManager = zone.getAppManager();
         EzyApp        app        = appManager.getAppById(appId);
         return(app);
     }
     return(null);
 }
コード例 #3
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");
        }
コード例 #4
0
        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);
            }
        }