Luski/Luski/Classes/ServerList.cs
JacobTech abf1e7fb74 Framework Update
A few changes, mostly to update the .NET framework version.

Started work on the settings menu by adding experiments.
2023-12-22 11:14:28 -05:00

30 lines
718 B
C#

using System.Text.Json.Serialization;
namespace Luski.Classes;
public class ServerList
{
[JsonInclude]
[JsonPropertyName("servers")]
public ServerInfo[] Server { get; set; } = new []
{
new ServerInfo()
{
Domain = "10.100.0.10:5287",
Version = "v1",
Main = false,
Secure = false
}
};
}
[JsonSerializable(typeof(ServerList))]
[JsonSourceGenerationOptions(
GenerationMode = JsonSourceGenerationMode.Default,
PropertyNamingPolicy = JsonKnownNamingPolicy.Unspecified,
WriteIndented = true,
DefaultIgnoreCondition = JsonIgnoreCondition.Never)]
internal partial class ServerListContext : JsonSerializerContext
{
}