Skip to content

Commit

Permalink
#198 поправил Stats.GetByGroup()
Browse files Browse the repository at this point in the history
  • Loading branch information
inyutin-maxim committed Feb 17, 2016
1 parent 9437818 commit f21a175
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions VkNet/Model/StatsPeriod.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.ObjectModel;
using System.Globalization;
using VkNet.Utils;

namespace VkNet.Model
Expand Down Expand Up @@ -42,13 +43,13 @@ public long? ReachSubscribers
/// <summary>
/// Число новых подписчиков.
/// </summary>
public long Subscribed
public long? Subscribed
{ get; set; }

/// <summary>
/// Число отписавшихся.
/// </summary>
public long Unsubscribed
public long? Unsubscribed
{ get; set; }

/// <summary>
Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit f21a175

Please sign in to comment.