44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
|
|
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;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <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; }
|
|||
|
|
}
|
|||
|
|
}
|