using JiShe.CollectBus.Common.Enums;
using System;
namespace JiShe.CollectBus.Protocol.Dto
{
public class UnitDataAnalysis
{
///
/// 集中器地址
///
public string Code { get; set; } = null!;
///
/// AFN功能码
///
public int AFN { get; set; }
///
/// 信息点
///
public int Pn { get; set; }
///
/// 信息类
///
public int Fn { get; set; }
///
/// 主站地址 MSA
///
public int MSA { get; set; }
///
/// 响应帧序号
///
public int PSEQ { get; set; }
///
/// 响应帧
///
public string? HexMessage { get; set; } = null;
///
/// 消息ID
///
public string? MessageId { get; set; }
///
/// 消息时间
///
public DateTime? ReceivedTime { get; set; }
///
/// 采集密度
///
public int TimeDensity { get; set; }
///
/// 采集密度单位
///
public DensityUnit DensityUnit { get; set; }= DensityUnit.Minute;
}
public class UnitDataAnalysis: UnitDataAnalysis
{
///
/// 数据
///
public T? Data { get; set; }
}
}