add additional fields to server api

This commit is contained in:
RaidMax 2022-01-26 15:17:05 -06:00
parent 0bed1c728a
commit 916ea4163b

View File

@ -25,7 +25,17 @@ namespace WebfrontCore.Controllers.API
Id = server.EndPoint, Id = server.EndPoint,
server.Hostname, server.Hostname,
server.IP, server.IP,
server.Port server.Port,
Game = server.GameName.ToString(),
server.ClientNum,
server.MaxClients,
server.CurrentMap,
currentGameType = new
{
type = server.Gametype,
name = server.GametypeName
},
Parser = server.RconParser.Name,
})); }));
} }
@ -44,7 +54,17 @@ namespace WebfrontCore.Controllers.API
Id = foundServer.EndPoint, Id = foundServer.EndPoint,
foundServer.Hostname, foundServer.Hostname,
foundServer.IP, foundServer.IP,
foundServer.Port foundServer.Port,
Game = foundServer.GameName.ToString(),
foundServer.ClientNum,
foundServer.MaxClients,
foundServer.CurrentMap,
currentGameType = new
{
type = foundServer.Gametype,
name = foundServer.GametypeName
},
Parser = foundServer.RconParser.Name,
}); });
} }
@ -91,4 +111,4 @@ namespace WebfrontCore.Controllers.API
}); });
} }
} }
} }