25 | An unhandled error has occurred.
26 |
Reload
27 |
🗙
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/IoTSharp.Maui/IoTSharp.Shared/Data/WeatherForecast.cs:
--------------------------------------------------------------------------------
1 | namespace IoTSharp.Shared.Data;
2 |
3 | public class WeatherForecast
4 | {
5 | public DateTime Date { get; set; }
6 |
7 | public int TemperatureC { get; set; }
8 |
9 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
10 |
11 | public string Summary { get; set; }
12 | }
13 |
--------------------------------------------------------------------------------
/IoTSharp.Maui/IoTSharp.Shared/Data/WeatherForecastService.cs:
--------------------------------------------------------------------------------
1 | namespace IoTSharp.Shared.Data;
2 |
3 | public class WeatherForecastService
4 | {
5 | private static readonly string[] Summaries = new[]
6 | {
7 | "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
8 | };
9 |
10 | public Task