mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-10-05 13:17:59 +03:00
mirror amnet-native json responses
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user