mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 20:00:05 +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
@@ -20,7 +20,9 @@ namespace WotBlitzStatisticsPro.Logic
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public async Task<AccountInfoResponse> GatherAccountInformation(RealmType realm, long accountId,
|
||||
public async Task<AccountInfoResponse> GatherAccountInformation(
|
||||
RealmType realm,
|
||||
long accountId,
|
||||
RequestLanguage requestLanguage)
|
||||
{
|
||||
var contextData = new AccountInformationPipelineContextData();
|
||||
@@ -56,13 +58,17 @@ namespace WotBlitzStatisticsPro.Logic
|
||||
return contextData?.Response ?? new AccountInfoResponse();
|
||||
}
|
||||
|
||||
public async Task<AccountInfoResponse> GatherAndSaveAccountInformation(RealmType realm, long accountId, RequestLanguage requestLanguage)
|
||||
public async Task<AccountInfoResponse> GatherAndSaveAccountInformation(
|
||||
RealmType realm,
|
||||
long accountId,
|
||||
RequestLanguage requestLanguage,
|
||||
string wargamingToken)
|
||||
{
|
||||
var contextData = new AccountInformationPipelineContextData();
|
||||
try
|
||||
{
|
||||
|
||||
var context = new OperationContext(new AccountRequest(accountId, realm, requestLanguage));
|
||||
var context = new OperationContext(new AccountRequest(accountId, realm, requestLanguage, wargamingToken));
|
||||
context.AddOrReplace(contextData);
|
||||
var pipeline = new Pipeline<IOperationContext>(_operationFactory);
|
||||
|
||||
|
||||
Reference in new issue
Block a user