From f21a175437860bcdb87401723f5a08d524db02da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BD=D1=8E=D1=82=D0=B8=D0=BD=20=D0=9C=D0=B0=D0=BA?= =?UTF-8?q?=D1=81=D0=B8=D0=BC=20=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B5?= =?UTF-8?q?=D0=B2=D0=B8=D1=87?= Date: Wed, 17 Feb 2016 23:20:40 +0300 Subject: [PATCH] =?UTF-8?q?#198=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20Stats.GetByGroup()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VkNet/Model/StatsPeriod.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/VkNet/Model/StatsPeriod.cs b/VkNet/Model/StatsPeriod.cs index c13f666ff..5ce7ddb94 100644 --- a/VkNet/Model/StatsPeriod.cs +++ b/VkNet/Model/StatsPeriod.cs @@ -1,5 +1,6 @@ using System; using System.Collections.ObjectModel; +using System.Globalization; using VkNet.Utils; namespace VkNet.Model @@ -42,13 +43,13 @@ public long? ReachSubscribers /// /// Число новых подписчиков. /// - public long Subscribed + public long? Subscribed { get; set; } /// /// Число отписавшихся. /// - public long Unsubscribed + public long? Unsubscribed { get; set; } /// @@ -90,7 +91,7 @@ internal static StatsPeriod FromJson(VkResponse response) { var statsPeriod = new StatsPeriod { - Day = DateTime.Parse(response["day"]), + Day = DateTime.Parse(response["day"], DateTimeFormatInfo.InvariantInfo), Views = response["views"], Visitors = response["visitors"], Reach = response["reach"],