mirror amnet-native json responses

This commit is contained in:
ppc
2024-08-15 09:37:22 +01:00
parent 6b831512a8
commit 9cbc9b1729
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -3,11 +3,11 @@
namespace AimeNet;
public record SystemState(
[property: JsonPropertyName("api_ver")] int ApiVersion,
[property: JsonPropertyName("server_name")] string ServerName);
[property: JsonPropertyName("apiVersion")] int ApiVersion,
[property: JsonPropertyName("serverName")] string ServerName);
public record CardReadRequest(
[property: JsonPropertyName("card_id")] string MatrixCode);
[property: JsonPropertyName("cardId")] string MatrixCode);
[JsonSerializable(typeof(SystemState))]
[JsonSerializable(typeof(CardReadRequest))]
+1 -1
View File
@@ -19,7 +19,7 @@ namespace AimeNet;
public static class DllMain
{
private const int ApiVersion = 1;
private const string WebAddress = "http://amnet.ppc.moe";
private const string WebAddress = "http://card.ppc.moe";
private static ILogger _serverLogger;