You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using HighWayIot.Repository.domain;
|
|
|
|
|
using HighWayIot.Repository.service.Impl;
|
|
|
|
|
using HighWayIot.TouchSocket;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace RFIDSocket
|
|
|
|
|
{
|
|
|
|
|
public class DataAnalysis
|
|
|
|
|
{
|
|
|
|
|
private static readonly Lazy<DataAnalysis> lazy = new Lazy<DataAnalysis>(() => new DataAnalysis());
|
|
|
|
|
|
|
|
|
|
public static DataAnalysis Instance => lazy.Value;
|
|
|
|
|
|
|
|
|
|
public List<RFIDContent> rFIDContents = new List<RFIDContent>();
|
|
|
|
|
public List<RFIDHeartbeat> rFIDHeartbeats = new List<RFIDHeartbeat>();
|
|
|
|
|
public List<RFIDState> rFIDStates = new List<RFIDState>();
|
|
|
|
|
|
|
|
|
|
public void GetData()
|
|
|
|
|
{
|
|
|
|
|
BaseContentServiceImpl baseContentServiceImpl = new BaseContentServiceImpl();
|
|
|
|
|
BaseHeartbeatServiceImpl baseHeartbeatServiceImpl = new BaseHeartbeatServiceImpl();
|
|
|
|
|
BaseStateServiceImpl baseStateServiceImpl = new BaseStateServiceImpl();
|
|
|
|
|
rFIDContents = baseContentServiceImpl.GetContentInfos().Reverse<RFIDContent>().Take(200).ToList();
|
|
|
|
|
rFIDHeartbeats = baseHeartbeatServiceImpl.GetHeartbeatInfos();
|
|
|
|
|
rFIDStates = baseStateServiceImpl.GetStateInfos();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|