include client name in stats info result

This commit is contained in:
RaidMax 2020-05-30 14:14:42 -05:00
parent fa79f4af73
commit b8d5495055
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,