}                               //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);
        }
Beispiel #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);
        }
        }                           //needed for json binding

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