Skip to content

Commit

Permalink
增加 设备模型、设备属性模型、设备事件模型禁用字段
Browse files Browse the repository at this point in the history
  • Loading branch information
xi3892 committed Sep 23, 2023
1 parent 10faf2e commit f067670
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions NewLife.IoT/Models/DeviceModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ public class DeviceModel : IDeviceInfo

/// <summary>更新时间。用于判断数据变化</summary>
public DateTime UpdateTime { get; set; }

/// <summary>是否启用 true 启用 false 停用</summary>
public Boolean IsEnable { get; set; }
}
8 changes: 2 additions & 6 deletions NewLife.IoT/ThingModels/DevicePropertyModel.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
namespace NewLife.IoT.ThingModels;

/// <summary>
/// 设备属性模型
/// </summary>
/// <summary>设备属性模型</summary>
public class DevicePropertyModel : PropertyModel
{
/// <summary>
/// 设备编码
/// </summary>
/// <summary>设备编码</summary>
public String DeviceCode { get; set; }
}
3 changes: 3 additions & 0 deletions NewLife.IoT/ThingModels/EventModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ public class EventModel

/// <summary>内容。事件详情</summary>
public String Remark { get; set; }

/// <summary>是否启用</summary>
public Boolean IsEnable { get; set; }
}
4 changes: 1 addition & 3 deletions NewLife.IoT/ThingModels/IPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ public interface IPoint
Int32 Length { get; set; }
}

/// <summary>
/// 点位扩展
/// </summary>
/// <summary>点位扩展</summary>
public static class PointHelper
{
/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions NewLife.IoT/ThingModels/PropertyModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ public class PropertyModel

/// <summary>数值</summary>
public Object Value { get; set; }

/// <summary>启用状态 true 启用 false 停用</summary>
public Boolean IsEnable { get; set; }
}

0 comments on commit f067670

Please sign in to comment.