A few changes, mostly to update the .NET framework version. Started work on the settings menu by adding experiments.
30 lines
718 B
C#
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
|
|
{
|
|
|
|
} |