mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 19:30:06 +02:00
chore: infrastructure code
This commit is contained in:
1 parent
44c89f2e5d
commit
14aae034af
7 files changed
+63
-3
No files matched your search
@@ -38,6 +38,14 @@ namespace WotBlitzStatisticsPro.Blazor.Services
|
||||
return clans.Data?.Clans;
|
||||
}
|
||||
|
||||
public async Task<IPlayer_AccountInfo> GetPlayerInfo(long accountId, RealmType realmType)
|
||||
{
|
||||
var playerInfo = await _client.Player.ExecuteAsync(accountId, realmType, GetLanguage());
|
||||
CheckErrors(playerInfo.Errors);
|
||||
|
||||
return playerInfo.Data?.AccountInfo;
|
||||
}
|
||||
|
||||
private RequestLanguage GetLanguage()
|
||||
{
|
||||
var culture = CultureInfo.CurrentCulture;
|
||||
|
||||
Reference in new issue
Block a user