vknet_vk/VkNet/Model/LinkStat.cs
Инютин Максим Николаевич f6901f2aa5 #1564 Проставляет XMLDOC
2023-07-29 17:55:07 +03:00

44 lines
No EOL
1.1 KiB
C#

using System;
using System.Collections.ObjectModel;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace VkNet.Model;
/// <summary>
/// Ссылка на статистику
/// </summary>
[Serializable]
public class LinkStat
{
/// <summary>
/// Время начала отсчета
/// </summary>
[JsonProperty(propertyName: "timestamp")]
[JsonConverter(converterType: typeof(UnixDateTimeConverter))]
public DateTime Timestamp { get; set; }
/// <summary>
/// Общее число переходов
/// </summary>
[JsonProperty(propertyName: "views")]
public uint Views { get; set; }
/// <summary>
/// Половозрастная статистика
/// </summary>
[JsonProperty(propertyName: "sex_age")]
public ReadOnlyCollection<SexAge> SexAge { get; set; }
/// <summary>
/// Статистика по странам
/// </summary>
[JsonProperty(propertyName: "countries")]
public ReadOnlyCollection<CountriesStats> Countries { get; set; }
/// <summary>
/// Статистика по городам
/// </summary>
[JsonProperty(propertyName: "cities")]
public ReadOnlyCollection<CitiesStats> Cities { get; set; }
}