1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 21:58:06 -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

@ -1,5 +1,5 @@
using System;
using Data.Models.Client;
using Data.Models;
namespace SharedLibraryCore.Dtos;
@ -9,6 +9,7 @@ public class ClientInfoResult
public string Name { get; set; }
public string Level { get; set; }
public long NetworkId { get; set; }
public string GameName { get; set; }
public string? Tag { get; set; }
public DateTime FirstConnection { get; set; }
public DateTime LastConnection { get; set; }

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,