mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-28 04:40:07 +01:00
feat: reorganized achevements queries and added client achievements request
This commit is contained in:
1 parent
8da5bdbfa8
commit
11b8b15a2a
37 files changed
+1940
-781
No files matched your search
@@ -38,12 +38,12 @@ namespace WotBlitzStatisticsPro.Blazor.Services
|
||||
return clans.Data?.Clans;
|
||||
}
|
||||
|
||||
public async Task<IPlayer_AccountInfo> GetPlayerInfo(long accountId, RealmType realmType)
|
||||
public async Task<(IPlayer_AccountInfo accountInfo, IReadOnlyList<IPlayer_AccountMedals_Sections> achievementsBySection)> GetPlayerInfo(long accountId, RealmType realmType)
|
||||
{
|
||||
var playerInfo = await _client.Player.ExecuteAsync(accountId, realmType, GetLanguage());
|
||||
CheckErrors(playerInfo.Errors);
|
||||
|
||||
return playerInfo.Data?.AccountInfo;
|
||||
return (playerInfo.Data?.AccountInfo, playerInfo.Data?.AccountMedals?.Sections);
|
||||
}
|
||||
|
||||
private RequestLanguage GetLanguage()
|
||||
|
||||
Reference in new issue
Block a user