23 lines
552 B
C#
23 lines
552 B
C#
|
using System.Text.Json.Serialization;
|
||
|
|
||
|
namespace Luski.net.JsonTypes;
|
||
|
|
||
|
public class ServerData
|
||
|
{
|
||
|
[JsonInclude]
|
||
|
[JsonPropertyName("address")]
|
||
|
public string DomainAndPort = default!;
|
||
|
[JsonInclude]
|
||
|
[JsonPropertyName("secure")]
|
||
|
public bool Secure;
|
||
|
}
|
||
|
|
||
|
[JsonSerializable(typeof(ServerData))]
|
||
|
[JsonSourceGenerationOptions(
|
||
|
GenerationMode = JsonSourceGenerationMode.Default,
|
||
|
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
|
||
|
WriteIndented = false)]
|
||
|
internal partial class ServerDataContext : JsonSerializerContext
|
||
|
{
|
||
|
|
||
|
}
|