using System; namespace JiShe.CollectBus.IotSystems.CommunicationLogs { public class PacketLog : ICassandraEntity { /// /// 下行报文 /// public string IssuedMessage { get; set; } = string.Empty; /// /// 上行报文 /// public string ReportMessage { get; set; } = string.Empty; public DateTime? IssuedTime { get; set; } public DateTime? ReportTime { get; set; } /// /// 报文类型(是否需要回复) /// public PacketType PacketType { get; set; } public Guid Id { get; set; } } public enum PacketType { /// /// 只有下发,不需要回复 /// OnlyIssued, /// /// 只有上报,不需要下发 /// OnlyReport, /// /// 下发并且需要回复 /// IssuedAndReport } }