feat: mutation metadatada added

This commit is contained in:
Mikhail Shabanov committed 2021-09-02 09:32:47 +02:00
1 parent 7d1d1b5ad6
commit 64ad05dc92
17 files changed
+422 -36

No files matched your search

@@ -52,6 +52,18 @@ namespace WotBlitzStatisticsPro.Blazor.Services
throw new System.NotImplementedException("Request for LoginUrl will be implemented soon");
}
public Task<LoginInfo> ProlongToken(long accountId, string oldToken, RealmType realmType)
{
throw new System.NotImplementedException();
}
public Task CollectPlayerInfo(long accountId, RealmType realmType, string accessToken)
{
// ToDo: Call mutation with accessToken in the context
return _client.UpdatePlayer.ExecuteAsync(accountId, realmType, RequestLanguage.En);
}
private RequestLanguage GetLanguage()
{
var culture = CultureInfo.CurrentCulture;
@@ -100,16 +112,5 @@ namespace WotBlitzStatisticsPro.Blazor.Services
_notificationsService.ReportError("Backend error",string.Join(";", messages));
}
}
public Task<LoginInfo> ProlongToken(long accountId, string oldToken, RealmType realmType)
{
throw new System.NotImplementedException();
}
public Task<(IAccount accountInfo, IReadOnlyList<ISection> achievementsBySection)> CollectPlayerInfo(long accountId, RealmType realmType, string accessToken)
{
// ToDo: Call mutation with accessToken in the context
throw new System.NotImplementedException();
}
}
}