public RealTimeUpdater(LiveBuilding building, SmapManager smapManager, int temperatureUpdateInterval, int co2UpdateInterval, int lightUpdateInterval, int luxUpdateInterval, int powerConsumptionInterval, int waterUpdateInterval, int motionDetectedUpdateInterval, int occupantsUpdateInterval, int wifiClientsUpdateInterval) : this(building, smapManager) { this.temperatureUpdateInterval = temperatureUpdateInterval; this.co2UpdateInterval = co2UpdateInterval; this.lightUpdateInterval = lightUpdateInterval; this.luxUpdateInterval = luxUpdateInterval; this.powerConsumptionInterval = powerConsumptionInterval; this.waterUpdateInterval = waterUpdateInterval; this.motionDetectedUpdateInterval = motionDetectedUpdateInterval; this.occupantsUpdateInterval = occupantsUpdateInterval; this.wifiClientsUpdateInterval = wifiClientsUpdateInterval; }
protected void Application_Start(object sender, EventArgs e) { BuildingSetup setup = new BuildingSetup(); LiveBuilding building = setup.CreateBuilding(); setup.SetupBuilding(building); SMAP smapDal = new SMAP(); SmapManager smapManager = new SmapManager(smapDal); RealTimeUpdater smapTimerUpdater = new RealTimeUpdater(building, smapManager); smapTimerUpdater.CreateUpdateTimers(); }
public RealTimeUpdater(LiveBuilding building, SmapManager smapManager) { this.building = building; this.smapManager = smapManager; }