public FiwareTrafficReport(DatasetAccidentReport accidentReport, long uid) { StartTime = accidentReport.StartTime; AddressNumber = accidentReport.AddressNumber; Description = RemoveSpecialCharacters(accidentReport.Description); Distance = accidentReport.Distance; Severity = accidentReport.Severity; Side = accidentReport.Side; StartLatitude = accidentReport.StartLatitude; StartLongitude = accidentReport.StartLongitude; Street = accidentReport.Street; City = accidentReport.City; Country = accidentReport.Country; County = accidentReport.County; State = accidentReport.State; ZipCode = accidentReport.ZipCode; UID = uid; }
public FiwareWeatherReport(string weatherCondition, WeatherMappings weatherMappings, DatasetAccidentReport accidentReport, long uid) { if (string.IsNullOrWhiteSpace(weatherCondition)) { return; } // Map weather condition to more statistical-friendly properties SetWeatherEventProperties(weatherCondition, weatherMappings); Humidity = accidentReport.Humidity; Precipitation = accidentReport.Precipitation; Pressure = accidentReport.Pressure; ReportTime = accidentReport.WeatherTimestamp; Temperature = accidentReport.Temperature; Visibility = accidentReport.Visibility; WindChill = accidentReport.WindChill; WindDirection = accidentReport.WindDirection; WindSpeed = accidentReport.WindSpeed; City = accidentReport.City; Country = accidentReport.Country; County = accidentReport.County; State = accidentReport.State; ZipCode = accidentReport.ZipCode; UID = uid; }