1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-11 23:58:08 -05:00

include client name in stats info result

This commit is contained in:
RaidMax
2020-05-30 14:14:42 -05:00
parent 1c515a3759
commit 7b4d4c1b36
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,11 @@ namespace Stats.Dtos
{ {
public class StatsInfoResult public class StatsInfoResult
{ {
/// <summary>
/// client name
/// </summary>
public string Name { get; set; }
/// <summary> /// <summary>
/// ranking on the server /// ranking on the server
/// </summary> /// </summary>

View File

@ -44,6 +44,7 @@ namespace Stats.Helpers
.Where(_stats => _stats.ClientId == query.ClientId) .Where(_stats => _stats.ClientId == query.ClientId)
.Select(_stats => new StatsInfoResult .Select(_stats => new StatsInfoResult
{ {
Name = _stats.Client.CurrentAlias.Name,
ServerId = _stats.ServerId, ServerId = _stats.ServerId,
Kills = _stats.Kills, Kills = _stats.Kills,
Deaths = _stats.Deaths, Deaths = _stats.Deaths,