refactor json serializer context

This commit is contained in:
ppc
2024-08-25 20:07:30 +01:00
parent 3e1a4b3b34
commit 4ca0f04506
@@ -4,6 +4,7 @@ namespace AimeNet;
public record SystemState(
[property: JsonPropertyName("apiVersion")] int ApiVersion,
[property: JsonPropertyName("gameId")] string GameId,
[property: JsonPropertyName("serverName")] string ServerName);
public record CardReadRequest(
@@ -12,4 +13,4 @@ public record CardReadRequest(
[JsonSerializable(typeof(SystemState))]
[JsonSerializable(typeof(CardReadRequest))]
[JsonSourceGenerationOptions(WriteIndented = true)]
public partial class AppJsonSerializerContext : JsonSerializerContext;
public partial class SerializerContext : JsonSerializerContext;