mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 11:50:05 +02:00
Some new data entities
This commit is contained in:
1 parent
50ecb57591
commit
3eeda15491
8 files changed
+227
-6
No files matched your search
@@ -10,7 +10,8 @@ namespace WotBlitzStatisticsPro.WgApiClient
|
||||
{
|
||||
public class WargamingApiClient : WagramingApiClientBase,
|
||||
IWargamingApiClient,
|
||||
IWargamingDictionariesApiClient
|
||||
IWargamingDictionariesApiClient,
|
||||
IWargamingTanksApiClient
|
||||
{
|
||||
public WargamingApiClient(
|
||||
HttpClient httpClient,
|
||||
@@ -141,7 +142,21 @@ namespace WotBlitzStatisticsPro.WgApiClient
|
||||
// https://api.wotblitz.ru/wotb/encyclopedia/achievements/?application_id=adc1387489cf9fc8d9a1d85dbd27763d
|
||||
|
||||
|
||||
#region Tanks methods
|
||||
|
||||
public async Task<List<WotAccountTanksStatistics>> GetPlayerAccountTanksInfo(
|
||||
long accountId,
|
||||
RealmType realmType = RealmType.Ru,
|
||||
RequestLanguage language = RequestLanguage.En)
|
||||
{
|
||||
var tanks = await GetFromBlitzApi<Dictionary<string, List<WotAccountTanksStatistics>>>(
|
||||
realmType,
|
||||
language,
|
||||
"tanks/stats/",
|
||||
$"account_id={accountId}").ConfigureAwait(false);
|
||||
return tanks[accountId.ToString()];
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user