2023-08-21 10:58:17 -04:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
using Luski.net.JsonTypes.BaseTypes;
|
|
|
|
|
|
|
|
namespace Luski.net.JsonTypes;
|
|
|
|
|
|
|
|
public class ServerInfo : IncomingHTTP
|
|
|
|
{
|
|
|
|
public string name { get; set; }
|
|
|
|
public string wssv4 { get; set; }
|
|
|
|
public string description { get; set; }
|
|
|
|
public long owner { get; set; }
|
2023-08-25 12:07:36 -04:00
|
|
|
|
|
|
|
[JsonInclude]
|
|
|
|
[JsonPropertyName("alternate_servers")]
|
|
|
|
public ServerData[] AlternateServers { get; set; } = default!;
|
2023-08-21 10:58:17 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
[JsonSerializable(typeof(ServerInfo))]
|
|
|
|
[JsonSourceGenerationOptions(
|
|
|
|
GenerationMode = JsonSourceGenerationMode.Default,
|
|
|
|
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
|
|
|
|
WriteIndented = false)]
|
|
|
|
internal partial class ServerInfoContext : JsonSerializerContext
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|