You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.2 KiB
C#

#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.IntelliBelt.Socket.Adapter
* 91905957-7469-4287-944D-6EEC9EED327C
*
* WenJY
*
* 2026-04-24 10:57:42
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using TouchSocket.Core;
using TouchSocket.Sockets;
namespace Sln.IntelliBelt.Socket.Adapter;
public class BufferRequestInfo:IRequestInfo
{
/// <summary>
/// 帧头
/// </summary>
public byte header { get; internal set; }
/// <summary>
/// 终端类型
/// </summary>
public byte terminalType { get; internal set; }
/// <summary>
/// 终端地址
/// </summary>
public string terminalAddr { get; internal set; }
/// <summary>
/// 指令序号
/// </summary>
public int serialNumber { get; internal set; }
/// <summary>
/// 功能标识码
/// </summary>
public int identCode { get; internal set; }
/// <summary>
/// 对象类别0 - 控制终端本体1 - 1#RFID读写器2 - 2#RFID读写器
/// </summary>
public int objType { get; internal set; }
/// <summary>
/// 数据内容区的数据长度
/// </summary>
public int contentLen { get; internal set; }
/// <summary>
/// 数据内容区
/// </summary>
public string content { get; internal set; }
/// <summary>
/// 内容体
/// </summary>
public byte[] body { get; internal set; }
/// <summary>
/// 校验位
/// </summary>
public byte checkBit { get; internal set; }
/// <summary>
/// 帧尾
/// </summary>
public byte tail { get; internal set; }
/// <summary>
/// 原始Buffer
/// </summary>
public ByteBlock buffer { get; internal set; }
}