add idm/access code preference for physical cards (server)

This commit is contained in:
ppc
2025-01-12 20:19:46 +00:00
parent 297ad685a7
commit 42cb241487
7 changed files with 33 additions and 10 deletions
+4 -2
View File
@@ -21,7 +21,8 @@ internal static partial class WebServer
[property: JsonPropertyName("gameId")] string GameId,
[property: JsonPropertyName("serverName")] string ServerName,
[property: JsonPropertyName("sessionUptime")] long SessionUptime,
[property: JsonPropertyName("timeSinceLastPoll")] long? TimeSinceLastPoll);
[property: JsonPropertyName("timeSinceLastPoll")] long? TimeSinceLastPoll,
[property: JsonPropertyName("physicalCardIdentifierPreference")] string PhysicalCardIdentifierPreference);
public record CardReadRequest(
[property: JsonPropertyName("cardId")] string MatrixCode);
@@ -82,7 +83,8 @@ internal static partial class WebServer
Config.GameId,
Config.ServerName,
Environment.TickCount64 - startedAt,
lastPollAt < 0 ? null : Environment.TickCount64 - lastPollAt);
lastPollAt < 0 ? null : Environment.TickCount64 - lastPollAt,
Config.PhysicalCardIdentifierPreference);
return Results.Ok(state);
}