IW4M-Admin/SharedLibraryCore/Dtos/ClientHistoryInfo.cs

29 lines
821 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
2023-05-30 19:12:57 -04:00
using System.Text.Json.Serialization;
namespace SharedLibraryCore.Dtos
{
public class ClientHistoryInfo
{
public long ServerId { get; set; }
public List<ClientCountSnapshot> ClientCounts { get; set; } = new();
}
public class ClientCountSnapshot
{
2023-05-30 19:12:57 -04:00
[JsonIgnore]
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")]
public int ClientCount { get; set; }
2023-05-30 19:12:57 -04:00
[JsonPropertyName("ci")]
public bool ConnectionInterrupted { get;set; }
2023-05-30 19:12:57 -04:00
[JsonIgnore]
public string Map { get; set; }
2023-05-30 19:12:57 -04:00
[JsonPropertyName("ma")]
public string MapAlias { get; set; }
}
}