ints instead of decimal, style changes

This commit is contained in:
Ryan Peters 2023-03-18 13:37:48 -04:00
parent 9e768e80ef
commit 5738b9b44d
4 changed files with 8 additions and 7 deletions

View File

@ -4,7 +4,7 @@
}
<div class="location">
<div>@Model.Location.Name, @Model.Location.Region</div>
@*<div>@Model.Location.Name, @Model.Location.Region</div>*@
<small>Last updated on @Model.Current.LastUpdated</small>
</div>

View File

@ -26,6 +26,7 @@ body {
.location small {
font-size: 14px;
opacity: 0.3;
}
.degrees {

View File

@ -12,16 +12,16 @@ namespace WeatherDashboard
public DateTime? Time { get; set; }
[JsonProperty("temp_f")]
public decimal Temperature { get; set; }
public int Temperature { get; set; }
[JsonProperty("feelslike_f")]
public decimal FeelsLike { get; set; }
public int FeelsLike { get; set; }
[JsonProperty("humidity")]
public decimal Humidity { get; set; }
public int Humidity { get; set; }
[JsonProperty("wind_mph")]
public decimal WindSpeed { get; set; }
public int WindSpeed { get; set; }
[JsonProperty("wind_dir")]
public string WindDirection { get; set; }

View File

@ -9,9 +9,9 @@ namespace WeatherDashboard
public string ConditionName { get; set; }
[JsonProperty("maxtemp_f")]
public decimal HighTemp { get; set; }
public int HighTemp { get; set; }
[JsonProperty("mintemp_f")]
public decimal LowTemp { get; set; }
public int LowTemp { get; set; }
}
}