vknet_vk/VkNet/Model/StatsPeriod.cs
Инютин Максим Николаевич 932d99d61a Применяет стили кода
2022-08-02 00:22:12 +03:00

44 lines
No EOL
1 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace VkNet.Model;
/// <summary>
/// Статистика сообщества или приложения.
/// </summary>
[Serializable]
public class StatsPeriod
{
/// <summary>
/// Период начала отсчёта.
/// </summary>
[JsonProperty("period_from")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime PeriodFrom { get; set; }
/// <summary>
/// Период окончания отсчёта.
/// </summary>
[JsonProperty("period_to")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime PeriodTo { get; set; }
/// <summary>
/// Данные о посетителях и просмотрах.
/// </summary>
[JsonProperty("visitors")]
public VisitorStats Visitors { get; set; }
/// <summary>
/// Данные об охвате.
/// </summary>
[JsonProperty("reach")]
public ReachStats Reach { get; set; }
/// <summary>
/// Activity
/// </summary>
[JsonProperty("activity")]
public Activity Activity { get; set; }
}