add game to player profile and admins page

This commit is contained in:
RaidMax
2022-06-07 21:58:32 -05:00
parent ab494a22cb
commit cf2a00e5b3
6 changed files with 18 additions and 6 deletions

View File

@ -1,4 +1,5 @@
using System;
using Data.Models;
using Data.Models.Client;
namespace SharedLibraryCore.Dtos
@ -10,6 +11,7 @@ namespace SharedLibraryCore.Dtos
public int LinkId { get; set; }
public EFClient.Permission Level { get; set; }
public DateTime LastConnection { get; set; }
public Reference.Game Game { get; set; }
public bool IsMasked { get; set; }
}
}

View File

@ -9,6 +9,7 @@ namespace SharedLibraryCore.Dtos
public class PlayerInfo
{
public string Name { get; set; }
public Reference.Game Game { get; set; }
public int ClientId { get; set; }
public string Level { get; set; }
public string Tag { get; set; }

View File

@ -178,6 +178,7 @@ namespace SharedLibraryCore.Services
.Select(_client => new EFClient
{
ClientId = _client.ClientId,
GameName = _client.GameName,
AliasLinkId = _client.AliasLinkId,
Level = _client.Level,
Connections = _client.Connections,
@ -789,7 +790,8 @@ namespace SharedLibraryCore.Services
PasswordSalt = client.PasswordSalt,
NetworkId = client.NetworkId,
LastConnection = client.LastConnection,
Masked = client.Masked
Masked = client.Masked,
GameName = client.GameName
};
return await iqClients.ToListAsync();