mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-10-06 05:37:58 +03:00
add idm/access code preference for physical cards (server)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user