iotgateway/IoTGateway.Model/DeviceVariable.cs

42 lines
1.1 KiB
C#
Raw Normal View History

2021-12-12 06:55:48 +00:00
using PluginInterface;
using System;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
namespace IoTGateway.Model
{
public class DeviceVariable : TopBasePoco, IVariable
{
[Display(Name = "变量名")]
public string Name { get; set; }
[Display(Name = "描述")]
public string Description { get; set; }
[Display(Name = "方法")]
public string Method { get; set; }
[Display(Name = "地址")]
public string DeviceAddress { get; set; }
[Display(Name = "类型")]
2022-12-06 14:39:28 +00:00
public DataTypeEnum DataType { get; set; }
[Display(Name = "大小端")]
public EndianEnum EndianType { get; set; }
2021-12-12 06:55:48 +00:00
[Display(Name = "表达式")]
public string Expressions { get; set; }
2021-12-12 06:55:48 +00:00
[Display(Name = "权限")]
public ProtectTypeEnum ProtectType { get; set; }
2022-08-25 00:59:49 +00:00
[Display(Name = "排序")]
public uint Index { get; set; }
2022-08-21 14:01:32 +00:00
[Newtonsoft.Json.JsonIgnore]
2021-12-12 06:55:48 +00:00
public Device Device { get; set; }
2022-03-22 14:35:33 +00:00
[Display(Name = "设备")]
2021-12-12 06:55:48 +00:00
public Guid? DeviceId { get; set; }
}
}