mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 10:27:18 +02:00
Tank info history query
This commit is contained in:
1 parent
9b9f2b141e
commit
eef4e9255b
14 files changed
+352
-32
No files matched your search
@@ -20,11 +20,6 @@ namespace WotBlitzStatisticsPro.GraphQl.Query
|
||||
_wargamingAccounts = wargamingAccounts;
|
||||
}
|
||||
|
||||
//public Task<AccountInfo> GetPlayerInfo(long accountId)
|
||||
//{
|
||||
// return _wargamingSearcher.GetPlayerAccountInfo(accountId);
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// Finds Wargaming accounts by nick
|
||||
/// </summary>
|
||||
@@ -87,5 +82,25 @@ namespace WotBlitzStatisticsPro.GraphQl.Query
|
||||
return _wargamingAccounts.GetAccountInfoHistory(realmType ?? RealmType.Ru, accountId, startDate,
|
||||
requestLanguage ?? RequestLanguage.En);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tank statistics history for period since "startDate"
|
||||
/// </summary>
|
||||
/// <param name="accountId">AccountId</param>
|
||||
/// <param name="tankId">TankId</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<TankInfoHistoryResponse> TankInfoHistory(
|
||||
long accountId,
|
||||
long tankId,
|
||||
DateTime startDate,
|
||||
RealmType? realmType,
|
||||
RequestLanguage? requestLanguage)
|
||||
{
|
||||
return _wargamingAccounts.GetTankInfoHistory(realmType ?? RealmType.Ru, accountId, tankId, startDate,
|
||||
requestLanguage ?? RequestLanguage.En);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user