mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 19:30:06 +02:00
AchievementDictionaries saving done
This commit is contained in:
1 parent
cacc60fc7f
commit
6a9b69b254
11 files changed
+613
-3
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using WotBlitzStatisticsPro.Common;
|
||||
@@ -65,6 +66,15 @@ namespace WotBlitzStatisticsPro.WgApiClient
|
||||
return (encyclopedia, clanGlossaryResponse);
|
||||
}
|
||||
|
||||
public async Task<List<WotEncyclopediaAchievementsResponse>> GetAchievementsDictionary(RealmType realmType = RealmType.Ru, RequestLanguage language = RequestLanguage.En)
|
||||
{
|
||||
var response = await GetFromBlitzApi<Dictionary<string, WotEncyclopediaAchievementsResponse>>(
|
||||
realmType,
|
||||
language,
|
||||
"encyclopedia/achievements/").ConfigureAwait(false);
|
||||
|
||||
return response.Values.ToList();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in new issue
Block a user