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.

122 lines
2.7 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* 版权所有 (c) 2026 WenJY 保留所有权利。
* CLR版本4.0.30319.42000
* 机器名称Mr.Wen's MacBook Pro
* 命名空间Sln.IntelliBelt.Model
* 唯一标识DDC3E355-A24A-4911-B049-4551B1F6A0C2
*
* 创建者WenJY
* 电子邮箱:
* 创建时间2026-04-27 17:21:15
* 版本V1.0.0
* 描述:
*
*--------------------------------------------------------------------
* 修改人:
* 时间:
* 修改说明:
*
* 版本V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using System.Text.Json.Serialization;
namespace Sln.IntelliBelt.Model;
/// <summary>
/// 读写器命令实体
/// </summary>
public class ReaderCommand
{
public ReaderCommand()
{
paramInfo = new ReaderParamInfo();
}
/// <summary>
/// 客户端标识符
/// </summary>
[JsonPropertyName("clientId")]
public string clientId { get; set; }
/// <summary>
/// 终端地址
/// </summary>
[JsonPropertyName("terminalAddr")]
public string terminalAddr { get; set; }
/// <summary>
/// 指令识别码
/// </summary>
[JsonPropertyName("identCode")]
public int identCode { get; set; }
/// <summary>
/// 对象类型
/// </summary>
[JsonPropertyName("objType")]
public int objType { get; set; }
/// <summary>
/// 内容数据(原始字符串)
/// </summary>
[JsonPropertyName("content")]
public string content { get; set; }
/// <summary>
/// 读写器参数列表
/// </summary>
[JsonPropertyName("readerParam")]
public ReaderParamInfo paramInfo { get; set; }
}
/// <summary>
/// 读写器参数信息
/// </summary>
public class ReaderParamInfo
{
/// <summary>
/// 读写器版本
/// </summary>
[JsonPropertyName("readerVersion")]
public string readerVersion { get; set; }
/// <summary>
/// 读写器温度
/// </summary>
[JsonPropertyName("readerTemp")]
public int readerTemp { get; set; }
/// <summary>
/// 天线功率配置列表
/// </summary>
[JsonPropertyName("antPowers")]
public List<AntPowerInfo> antPowers = new List<AntPowerInfo>();
}
/// <summary>
/// 天线功率信息
/// </summary>
public class AntPowerInfo
{
/// <summary>
/// 天线编号
/// </summary>
[JsonPropertyName("ant")]
public int ant { get; set; }
/// <summary>
/// 读取功率
/// </summary>
[JsonPropertyName("readPower")]
public int readPower { get; set; }
/// <summary>
/// 写入功率
/// </summary>
[JsonPropertyName("writePower")]
public int writePower { get; set; }
}