Preparing for the History query

This commit is contained in:
Mikhail Shabanov committed 2020-11-17 11:01:35 +01:00
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);
}
}
}