Exemple #1
0
        public void UpdateObserver()
        {
            WetherStationDTO pulledData = observable.GetData();

            TemperatureList.Add(pulledData.Temperature);
            PressureList.Add(pulledData.Pressure);
            HumidityList.Add(pulledData.Humidity);
        }
        public void UpdateObserver()
        {
            WetherStationDTO pulledData = observable.GetData();

            Temperature = pulledData.Temperature;
            Pressure    = pulledData.Pressure;
            Humidity    = pulledData.Humidity;
            Rain        = pulledData.Rain;
        }
        public WetherStationDTO GetData()
        {
            var dataToTransfer = new WetherStationDTO()
            {
                Humidity    = this.Humidity,
                Rain        = this.Rain,
                Temperature = this.Temperature,
                Pressure    = this.Pressure
            };

            return(dataToTransfer);
        }