feat: reorganized achevements queries and added client achievements request

This commit is contained in:
Mikhail Shabanov committed 2021-06-02 14:34:00 +02:00
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()