2021-08-29 14:10:10 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2023-05-30 19:12:57 -04:00
|
|
|
|
using System.Text.Json.Serialization;
|
2021-08-29 14:10:10 -04:00
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Dtos
|
|
|
|
|
{
|
|
|
|
|
public class ClientHistoryInfo
|
|
|
|
|
{
|
|
|
|
|
public long ServerId { get; set; }
|
2022-03-29 17:42:53 -04:00
|
|
|
|
public List<ClientCountSnapshot> ClientCounts { get; set; } = new();
|
2021-08-29 14:10:10 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ClientCountSnapshot
|
|
|
|
|
{
|
2023-05-30 19:12:57 -04:00
|
|
|
|
[JsonIgnore]
|
2021-08-29 14:10:10 -04:00
|
|
|
|
public DateTime Time { get; set; }
|
2023-05-30 19:12:57 -04:00
|
|
|
|
[JsonPropertyName("ts")]
|
2022-03-29 18:18:41 -04:00
|
|
|
|
public string TimeString => Time.ToString("yyyy-MM-ddTHH:mm:ssZ");
|
2023-05-30 19:12:57 -04:00
|
|
|
|
[JsonPropertyName("cc")]
|
2021-08-29 14:10:10 -04:00
|
|
|
|
public int ClientCount { get; set; }
|
2023-05-30 19:12:57 -04:00
|
|
|
|
[JsonPropertyName("ci")]
|
2022-03-29 17:42:53 -04:00
|
|
|
|
public bool ConnectionInterrupted { get;set; }
|
2023-05-30 19:12:57 -04:00
|
|
|
|
[JsonIgnore]
|
2022-03-29 17:42:53 -04:00
|
|
|
|
public string Map { get; set; }
|
2023-05-30 19:12:57 -04:00
|
|
|
|
[JsonPropertyName("ma")]
|
2022-03-29 17:42:53 -04:00
|
|
|
|
public string MapAlias { get; set; }
|
2021-08-29 14:10:10 -04:00
|
|
|
|
}
|
2022-03-29 17:42:53 -04:00
|
|
|
|
}
|