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