2024-11-13 17:50:52 +08:00
|
|
|
|
using JiShe.CollectBus.Protocol.Contracts.Interfaces;
|
|
|
|
|
|
|
|
|
|
|
|
namespace JiShe.CollectBus.Protocol.Contracts.Models
|
2024-09-30 17:10:43 +08:00
|
|
|
|
{
|
2024-10-08 14:41:41 +08:00
|
|
|
|
public class ProtocolInfo : IProtocolInfo
|
2024-09-30 17:10:43 +08:00
|
|
|
|
{
|
2024-10-08 14:41:41 +08:00
|
|
|
|
public ProtocolInfo(string name, string baseProtocol, string type, string description, string regularExpression)
|
2024-09-30 17:10:43 +08:00
|
|
|
|
{
|
|
|
|
|
|
Name = name;
|
|
|
|
|
|
Type = type;
|
|
|
|
|
|
Description = description;
|
|
|
|
|
|
RegularExpression = regularExpression;
|
|
|
|
|
|
BaseProtocol = baseProtocol;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-10-08 14:41:41 +08:00
|
|
|
|
/// 协议名称
|
2024-09-30 17:10:43 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-10-08 14:41:41 +08:00
|
|
|
|
/// 基础协议 376.1/645
|
2024-09-30 17:10:43 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string BaseProtocol { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-10-08 14:41:41 +08:00
|
|
|
|
/// 协议类型 TCP/UDP
|
2024-09-30 17:10:43 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Type { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-10-08 14:41:41 +08:00
|
|
|
|
/// 协议备注
|
2024-09-30 17:10:43 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-10-08 14:41:41 +08:00
|
|
|
|
/// 型号正则匹配
|
2024-09-30 17:10:43 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string RegularExpression { get; set; }
|
|
|
|
|
|
}
|
2024-10-08 14:41:41 +08:00
|
|
|
|
}
|