1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-14 09:08:32 -05:00

Add GameName to ClientInfoResult and ClientController

Updated `ClientInfoResult` to include a new `GameName` property. Also modified `ClientController` to handle and display this new property properly.
This commit is contained in:
Ayymoss
2024-08-22 19:43:41 +01:00
committed by RaidMax
parent 5c9cfbd2c2
commit 3f8b2fac9e
2 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Data.Models;
using Humanizer;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.Extensions.Logging;
@ -90,6 +91,7 @@ namespace WebfrontCore.Controllers.API
Name = clientInfo.CleanedName,
Level = clientInfo.Level.ToLocalizedLevelName(),
NetworkId = clientInfo.NetworkId,
GameName = clientInfo.GameName.ToString(),
Tag = metaResult?.Value,
FirstConnection = clientInfo.FirstConnection,
LastConnection = clientInfo.LastConnection,