From 2c6085d54642977c4ec89736979aed10c66a7c29 Mon Sep 17 00:00:00 2001 From: Eric Soderquist Date: Fri, 2 Dec 2016 21:58:18 -0900 Subject: [PATCH 1/2] API result contains a non-array open/close --- .../API/Places/Components/PlaceOpeningPeriods.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GoogleMapsAPI.NET.Core/API/Places/Components/PlaceOpeningPeriods.cs b/GoogleMapsAPI.NET.Core/API/Places/Components/PlaceOpeningPeriods.cs index f56b5e6..dc78973 100644 --- a/GoogleMapsAPI.NET.Core/API/Places/Components/PlaceOpeningPeriods.cs +++ b/GoogleMapsAPI.NET.Core/API/Places/Components/PlaceOpeningPeriods.cs @@ -16,13 +16,13 @@ public class PlaceOpeningPeriods /// When the place opens /// [DataMember(Name = "open")] - public List Open { get; set; } + public PlaceOpeningPeriodDayTime Open { get; set; } /// /// When the place closes /// [DataMember(Name = "close")] - public List Close { get; set; } + public PlaceOpeningPeriodDayTime Close { get; set; } #endregion From 7c0e6d0018b5e2578f377df77ed64d371611dbcb Mon Sep 17 00:00:00 2001 From: Eric Soderquist Date: Sat, 3 Dec 2016 11:03:50 -0900 Subject: [PATCH 2/2] Time is defined by API as a string in HHMM format --- .../API/Places/Components/PlaceOpeningPeriodDayTime.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GoogleMapsAPI.NET.Core/API/Places/Components/PlaceOpeningPeriodDayTime.cs b/GoogleMapsAPI.NET.Core/API/Places/Components/PlaceOpeningPeriodDayTime.cs index f936546..53ea912 100644 --- a/GoogleMapsAPI.NET.Core/API/Places/Components/PlaceOpeningPeriodDayTime.cs +++ b/GoogleMapsAPI.NET.Core/API/Places/Components/PlaceOpeningPeriodDayTime.cs @@ -22,7 +22,7 @@ public class PlaceOpeningPeriodDayTime /// time will be reported in the place’s time zone. /// [DataMember(Name = "time")] - public int Time { get; set; } + public string Time { get; set; } #endregion