using System; using JiShe.CollectBus.Interfaces; using Volo.Abp.Domain.Entities; namespace JiShe.CollectBus.IotSystems.Protocols { public class ProtocolInfo : AggregateRoot, IProtocolInfo { /// /// /// /// /// /// /// /// public ProtocolInfo(string name, string baseProtocol, string type, string description, string regularExpression) { Code = $"PL-{DateTime.Now:yyyyMMddHHmmss}"; Name = name; Type = type; Description = description; RegularExpression = regularExpression; BaseProtocol = baseProtocol; } /// /// 协议编码,唯一识别 /// public string Code { get; set; } /// /// 协议名称 /// public string Name { get; set; } /// /// 基础协议 376.1/645 /// public string BaseProtocol { get; set; } /// /// 协议类型 TCP/UDP /// public string Type { get; set; } /// /// 协议备注 /// public string Description { get; set; } /// /// 型号正则匹配 /// public string RegularExpression { get; set; } } }