mirror of
https://github.com/vknet/vk.git
synced 2026-07-10 00:18:28 +00:00
44 lines
No EOL
1.1 KiB
C#
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; }
|
|
} |