Skip to content

Commit

Permalink
取消使用record,更改为class
Browse files Browse the repository at this point in the history
  • Loading branch information
yedajiang44 committed Jul 24, 2024
1 parent ac47289 commit dff0b2d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,19 @@ public override void Serialize(ref JT808MessagePackWriter writer, JT808_0x0200_0
/// <summary>
/// 故障信息
/// </summary>
/// <param name="Index">存储器索引,表示第几个存储器,从1开始</param>
/// <param name="Fault">是否存在故障</param>
public record FaultItem(int Index, bool Fault)
/// <param name="index">存储器索引,表示第几个存储器,从1开始</param>
/// <param name="fault">是否存在故障</param>
public class FaultItem(int index, bool fault)
{

/// <summary>
/// 存储器索引,表示第几个存储器,从1开始
/// </summary>
public int Index { get; set; } = index;
/// <summary>
/// 是否存在故障
/// </summary>
public bool Fault { get; set; } = fault;
/// <summary>
/// 解析故障信息
/// </summary>
Expand Down

0 comments on commit dff0b2d

Please sign in to comment.