use correct class

This commit is contained in:
Chomp 2022-01-12 15:06:00 +00:00
parent a52e56835b
commit e0a194cd61

View File

@ -10,7 +10,7 @@ namespace AssortValidator.Common.Helpers
public static class AssortHelper
{
private static Dictionary<Trader, Assort> _assortDataCache;
private static Dictionary<Trader, LiveAssort> _assortLiveDataCache;
private static Dictionary<Trader, Assort> _assortLiveDataCache;
public static Dictionary<Trader, Assort> GetAssortData()
{
@ -74,16 +74,16 @@ namespace AssortValidator.Common.Helpers
return Trader.Unknown;
}
public static Dictionary<Trader, LiveAssort> GetLiveAssortData()
public static Dictionary<Trader, Assort> GetLiveAssortData()
{
if (_assortLiveDataCache == null)
{
_assortLiveDataCache = new Dictionary<Trader, LiveAssort>();
_assortLiveDataCache = new Dictionary<Trader, Assort>();
foreach (var filePath in InputFileHelper.GetInputFilePaths().Where(x => x.Contains("resp.client.trading.api.getTraderAssort")))
{
var traderType = GetTraderType(filePath);
var json = File.ReadAllText(filePath);
var parsedAssorts = JsonSerializer.Deserialize<LiveAssortRoot>(json);
var parsedAssorts = JsonSerializer.Deserialize<AssortRoot>(json);
if (traderType != Trader.Unknown)
{