mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 03:40:07 +02:00
Clan info added
This commit is contained in:
1 parent
1d13507aa7
commit
089c6329ee
7 files changed
+261
-1
No files matched your search
@@ -49,5 +49,24 @@ namespace WotBlitzStatisticsPro.WgApiClient
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public async Task<ClanInfo> GetClanInfo(
|
||||
long clanId,
|
||||
RealmType realmType = RealmType.Ru,
|
||||
RequestLanguage language = RequestLanguage.En)
|
||||
{
|
||||
// https://api.wotblitz.ru/wotb/clans/info/?application_id=adc1387489cf9fc8d9a1d85dbd27763d&clan_id=40493
|
||||
var clanInfo = await GetFromBlitzApi<Dictionary<string, ClanInfo>>(
|
||||
realmType,
|
||||
language,
|
||||
"clans/info/",
|
||||
$"clan_id={clanId}").ConfigureAwait(false);
|
||||
if (clanInfo.ContainsKey(clanId.ToString()))
|
||||
{
|
||||
return clanInfo[clanId.ToString()];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user