mirror of
https://gitee.com/iioter/iotgateway.git
synced 2024-12-03 12:17:55 +08:00
45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WalkingTec.Mvvm.Core;
|
|
|
|
namespace IoTGateway.Model
|
|
{
|
|
public class Device : TreePoco<Device>, IBasePoco
|
|
{
|
|
[Display(Name = "名称")]
|
|
public string DeviceName { get; set; }
|
|
|
|
[Display(Name = "排序")]
|
|
public uint Index { get; set; }
|
|
|
|
[Display(Name = "描述")]
|
|
public string Description { get; set; }
|
|
|
|
public Driver Driver { get; set; }
|
|
[Display(Name = "驱动")]
|
|
public Guid? DriverId { get; set; }
|
|
|
|
[Display(Name = "自启动")]
|
|
public bool AutoStart { get; set; }
|
|
|
|
[Display(Name = "类型")]
|
|
public DeviceTypeEnum DeviceTypeEnum { get; set; }
|
|
|
|
[Display(Name = "创建时间")]
|
|
public DateTime? CreateTime { get; set; }
|
|
[Display(Name = "创建人")]
|
|
public string CreateBy { get; set; }
|
|
[Display(Name = "更新时间")]
|
|
public DateTime? UpdateTime { get; set; }
|
|
[Display(Name = "更新人")]
|
|
public string UpdateBy { get; set; }
|
|
|
|
public List<DeviceConfig> DeviceConfigs { get; set; }
|
|
public List<DeviceVariable> DeviceVariables { get; set; }
|
|
}
|
|
}
|