Luski.Net/Luski.net/JsonTypes/LocalServerInfo.cs
JacobTech 0349745944 Alternate servers.
On load, the client can find alternate servers to connect to.
2023-08-25 12:07:36 -04:00

21 lines
556 B
C#

using System;
using System.Text.Json.Serialization;
namespace Luski.net.JsonTypes;
public class LocalServerInfo
{
[JsonInclude]
[JsonPropertyName("alternate_servers")]
public ServerData[] AlternateServers { get; set; } = Array.Empty<ServerData>();
}
[JsonSerializable(typeof(LocalServerInfo))]
[JsonSourceGenerationOptions(
GenerationMode = JsonSourceGenerationMode.Default,
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
WriteIndented = false)]
internal partial class LocalServerInfoContext : JsonSerializerContext
{
}