Ejemplo n.º 1
0
        public static ClimateItem ClimateMeanValues(ClimateItem left, ClimateItem right)
        {
            string      indoorMean  = ClimateItem.MeanIndoorValue(left, right);
            string      outDoorMean = ClimateItem.MeanOutdoorValue(left, right);
            ClimateItem mean        = new ClimateItem()
            {
                IndoorValue = indoorMean, OutdoorValue = outDoorMean, TimeStamp = DateTime.Now
            };

            return(mean);
        }
Ejemplo n.º 2
0
 public static string MeanIndoorValue(ClimateItem left, ClimateItem right)
 {
     return(ClimateItem.Meanvalue(left.IndoorValue, right.IndoorValue));
 }