feat: realm added. Plus clans bug fixed

This commit is contained in:
Mikhail Shabanov committed 2021-05-15 22:23:49 +02:00
1 parent 68faee2d23
commit 3c67595d94
7 files changed
+66 -26

No files matched your search

@@ -163,6 +163,10 @@ namespace WotBlitzStatisticsPro.WgApiClient
public async Task<List<ClanAccountInfo>?> GetBulkPlayerClans(long[] accountIds, RealmType realmType = RealmType.Ru,
RequestLanguage language = RequestLanguage.En)
{
if (accountIds.Length == 0)
{
return null;
}
var clanInfo = await GetFromBlitzApi<Dictionary<string, ClanAccountInfo>>(
realmType,
language,
@@ -174,6 +178,10 @@ namespace WotBlitzStatisticsPro.WgApiClient
public async Task<List<ClanInfo>?> GetShortClansInfo(long[] clanIds, RealmType realmType = RealmType.Ru,
RequestLanguage language = RequestLanguage.En)
{
if (clanIds.Length == 0)
{
return null;
}
var clanInfo = await GetFromBlitzApi<Dictionary<string, ClanInfo>>(
realmType,
language,