mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 03:40:07 +02:00
feat: Passing Wargaming Token for Gather application mutation
This commit is contained in:
1 parent
0b5da2f7c6
commit
c9f933235c
8 files changed
+50
-17
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using System.Threading.Tasks;
|
||||
using HotChocolate;
|
||||
using HotChocolate.AspNetCore.Authorization;
|
||||
using HotChocolate.Types;
|
||||
using WotBlitzStatisticsPro.Common.Model;
|
||||
@@ -40,10 +41,15 @@ namespace WotBlitzStatisticsPro.GraphQl.Mutation
|
||||
/// <param name="realmType">Account region</param>
|
||||
/// <param name="accountId">AccountId</param>
|
||||
/// <param name="requestLanguage">Request language</param>
|
||||
/// <param name="wgToken">Wargaming authentication token</param>
|
||||
/// <returns></returns>
|
||||
public Task<AccountInfoResponse> GatherAccountInformation(RealmType realmType, long accountId, RequestLanguage requestLanguage)
|
||||
public Task<AccountInfoResponse> GatherAccountInformation(
|
||||
RealmType realmType,
|
||||
long accountId,
|
||||
RequestLanguage requestLanguage,
|
||||
[GlobalState("WgToken")] string wgToken)
|
||||
{
|
||||
return _wargamingAccounts.GatherAndSaveAccountInformation(realmType, accountId, requestLanguage);
|
||||
return _wargamingAccounts.GatherAndSaveAccountInformation(realmType, accountId, requestLanguage, wgToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user