mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 03:10:07 +02:00
Preparing for the History query
This commit is contained in:
1 parent
ddbf42e7bb
commit
ed52a65788
14 files changed
+334
-6
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using System.Threading.Tasks;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using WotBlitzStatisticsPro.Common.Model;
|
||||
using WotBlitzStatisticsPro.Logic;
|
||||
|
||||
@@ -68,5 +69,23 @@ namespace WotBlitzStatisticsPro.GraphQl.Query
|
||||
{
|
||||
return _wargamingAccounts.GatherAccountInformation(realmType ?? RealmType.Ru, accountId, requestLanguage ?? RequestLanguage.En);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Account statistics history for period since "startDate"
|
||||
/// </summary>
|
||||
/// <param name="accountId">AccountId</param>
|
||||
/// <param name="startDate">Date from history started</param>
|
||||
/// <param name="realmType">Account region</param>
|
||||
/// <param name="requestLanguage">Request language</param>
|
||||
/// <returns></returns>
|
||||
public Task<AccountInfoHistoryResponse> AccountInfoHistory(
|
||||
long accountId,
|
||||
DateTime startDate,
|
||||
RealmType? realmType,
|
||||
RequestLanguage? requestLanguage)
|
||||
{
|
||||
return _wargamingAccounts.GetAccountInfoHistory(realmType ?? RealmType.Ru, accountId, startDate,
|
||||
requestLanguage ?? RequestLanguage.En);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user