From 38125509e5f337256a80aba645ed893098127806 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Sat, 5 Aug 2017 10:12:20 +0200 Subject: [PATCH] fixed .weather min/max temperature --- src/NadekoBot/Modules/Searches/Common/WeatherModels.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Searches/Common/WeatherModels.cs b/src/NadekoBot/Modules/Searches/Common/WeatherModels.cs index 7c7922e8..c7552a90 100644 --- a/src/NadekoBot/Modules/Searches/Common/WeatherModels.cs +++ b/src/NadekoBot/Modules/Searches/Common/WeatherModels.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using Newtonsoft.Json; +using System.Collections.Generic; namespace NadekoBot.Modules.Searches.Common { @@ -21,7 +22,9 @@ namespace NadekoBot.Modules.Searches.Common public double Temp { get; set; } public float Pressure { get; set; } public float Humidity { get; set; } + [JsonProperty("temp_min")] public double TempMin { get; set; } + [JsonProperty("temp_max")] public double TempMax { get; set; } }