39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
namespace JiShe.CollectBus.Protocol.Contracts.Models
|
|
{
|
|
public class ProtocolInfo : IProtocolInfo
|
|
{
|
|
public ProtocolInfo(string name, string baseProtocol, string type, string description, string regularExpression)
|
|
{
|
|
Name = name;
|
|
Type = type;
|
|
Description = description;
|
|
RegularExpression = regularExpression;
|
|
BaseProtocol = baseProtocol;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 协议名称
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 基础协议 376.1/645
|
|
/// </summary>
|
|
public string BaseProtocol { get; set; }
|
|
|
|
/// <summary>
|
|
/// 协议类型 TCP/UDP
|
|
/// </summary>
|
|
public string Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 协议备注
|
|
/// </summary>
|
|
public string Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// 型号正则匹配
|
|
/// </summary>
|
|
public string RegularExpression { get; set; }
|
|
}
|
|
} |