From 32649d9004c65dd2ac21087b66822710e4dcc3e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Zborek?= Date: Sat, 7 Sep 2024 12:35:54 +0200 Subject: [PATCH] Change precipitation chance to decimal --- .../Responses/GetSeasonsWithSeriesSuccessfulAsync/2.json | 2 +- src/Aydsko.iRacingData/Series/WeatherSummary.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Aydsko.iRacingData.UnitTests/Responses/GetSeasonsWithSeriesSuccessfulAsync/2.json b/src/Aydsko.iRacingData.UnitTests/Responses/GetSeasonsWithSeriesSuccessfulAsync/2.json index 9caccb1..381d536 100644 --- a/src/Aydsko.iRacingData.UnitTests/Responses/GetSeasonsWithSeriesSuccessfulAsync/2.json +++ b/src/Aydsko.iRacingData.UnitTests/Responses/GetSeasonsWithSeriesSuccessfulAsync/2.json @@ -10434,7 +10434,7 @@ "weather_summary": { "max_precip_rate": 0, "max_precip_rate_desc": "None", - "precip_chance": 0, + "precip_chance": 0.2, "skies_high": 2, "skies_low": 0, "temp_high": 23.1, diff --git a/src/Aydsko.iRacingData/Series/WeatherSummary.cs b/src/Aydsko.iRacingData/Series/WeatherSummary.cs index 0160853..cad5563 100644 --- a/src/Aydsko.iRacingData/Series/WeatherSummary.cs +++ b/src/Aydsko.iRacingData/Series/WeatherSummary.cs @@ -9,7 +9,7 @@ public class WeatherSummary public string? MaxPrecipitationRateDesc { get; set; } [JsonPropertyName("precip_chance")] - public int PrecipitationChance { get; set; } + public decimal PrecipitationChance { get; set; } [JsonPropertyName("skies_high")] public int SkiesHigh { get; set; }