From 1fdf5ef317422f79eae42269540ee8fae4e7229c Mon Sep 17 00:00:00 2001 From: "David J. Garcia" Date: Fri, 10 Nov 2017 12:07:29 -0600 Subject: [PATCH] Fix to issue when deserialize opening_hours of place details --- .../API/Places/Components/PlaceOpeningPeriodDayTime.cs | 2 +- .../API/Places/Components/PlaceOpeningPeriods.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 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