PIAPS_CW/RestAPI/WeatherForecast.cs
2024-05-09 17:45:03 +04:00

14 lines
274 B
C#

namespace RestAPI
{
public class WeatherForecast
{
public DateOnly Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string? Summary { get; set; }
}
}