using System; using System.Collections.Generic; using System.Text; namespace JiShe.CollectBus.Protocol.Contracts.Models { public class Protocol:IProtocol { public Protocol(string name, string baseProtocol, string type, string description, string regularExpression) { Name = name; Type = type; Description = description; RegularExpression = regularExpression; BaseProtocol = baseProtocol; } /// /// 协议名称 /// 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; } } }