Exemplo n.º 1
0
        }                               //needed for json binding

        internal TurbulenceReport(weather.Report forecast)
        {
            if (isItWindy(forecast.WindSpeed))
            {
                _isWindy = true;
            }
            if (isVisiblityImpaired(forecast.Visiblity))
            {
                _isVisibilityImpaired = true;
            }

            Why = parseWhy(_isWindy, _isVisibilityImpaired);
        }
Exemplo n.º 2
0
 internal WeatherReport(weather.Report forecast)
 {
     Location    = forecast.Location.ToString();
     Temperature = forecast.Temperature.ToPrintable();
     Status      = forecast.Status;
 }
        }                                      //model binding requirement

        internal OpionatedWeatherReport(weather.Report report)
        {
            Conditions           = new WeatherReport(report);
            DressRecommendations = new ClothingTips(report);
            FlightConditions     = new TurbulenceReport(report);
        }
Exemplo n.º 4
0
        }                           //needed for json binding

        internal ClothingTips(weather.Report report)
        {
            TakeAnUmbrella = isItRaining(report.Status);
            WearACoat      = isItCold(report.Temperature);
        }