Website Summary Files Commits Branches @commit @diff @stats
path: root / API / WeatherForecast.cs
diff options
context:
space:
mode:
1 files changed, 15 insertions, 0 deletions
-rw-r--r--API/WeatherForecast.cs15
diff --git a/API/WeatherForecast.cs b/API/WeatherForecast.cs
new file mode 100644
index 0000000..746c136
--- /dev/null
+++ b/API/WeatherForecast.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace API
+{
+ public class WeatherForecast
+ {
+ public DateTime Date { get; set; }
+
+ public int TemperatureC { get; set; }
+
+ public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
+
+ public string Summary { get; set; }
+ }
+}