34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
using System.Collections.Concurrent;
|
|
using YD_AllHeartRates.Api.Entitys;
|
|
using YD_AllHeartRates.Commons.Dto.Student;
|
|
using YD_AllHeartRates.Commons.MemoryCaches;
|
|
|
|
namespace YD_AllHeartRates.Api.Mqtt.Device.Parser
|
|
{
|
|
public class ParserContext
|
|
{
|
|
public ICaching Caching { get; }
|
|
public ILogger Log { get; }
|
|
public ConcurrentDictionary<string, StudentDto> StudentHMap { get; }
|
|
public ConcurrentDictionary<string, StudentDto> StudentJMap { get; }
|
|
public ConcurrentBag<HeartRateData> HeartRateEntities { get; }
|
|
public ConcurrentBag<JumpRopeData> JumpRopeEntities { get; }
|
|
|
|
public ParserContext(
|
|
ICaching caching,
|
|
ILogger log,
|
|
ConcurrentDictionary<string, StudentDto> studentHMap,
|
|
ConcurrentDictionary<string, StudentDto> studentJMap,
|
|
ConcurrentBag<HeartRateData> heartRateEntities,
|
|
ConcurrentBag<JumpRopeData> jumpRopeEntities)
|
|
{
|
|
Caching = caching;
|
|
Log = log;
|
|
StudentHMap = studentHMap;
|
|
StudentJMap = studentJMap;
|
|
HeartRateEntities = heartRateEntities;
|
|
JumpRopeEntities = jumpRopeEntities;
|
|
}
|
|
}
|
|
}
|