iotgateway/IoTGateway.Model/Device.cs

51 lines
1.5 KiB
C#
Raw Normal View History

2021-12-12 06:55:48 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
namespace IoTGateway.Model
{
public class Device : TreePoco<Device>, IBasePoco
{
2024-01-08 14:18:16 +00:00
[Display(Name = "DeviceName")]
2021-12-12 06:55:48 +00:00
public string DeviceName { get; set; }
2023-12-23 11:23:22 +00:00
[Display(Name = "Sort")]
2021-12-12 06:55:48 +00:00
public uint Index { get; set; }
2023-12-23 11:23:22 +00:00
[Display(Name = "Description")]
2021-12-12 06:55:48 +00:00
public string Description { get; set; }
public Driver Driver { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "Driver")]
2021-12-12 06:55:48 +00:00
public Guid? DriverId { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "AutoStart")]
2021-12-12 06:55:48 +00:00
public bool AutoStart { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "ChangeUpload")]
public bool CgUpload { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "EnforcePeriodms")]
public uint EnforcePeriod { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "CmdPeriodms")]
2022-10-12 06:35:45 +00:00
public uint CmdPeriod { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "Type")]
2021-12-12 06:55:48 +00:00
public DeviceTypeEnum DeviceTypeEnum { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "CreateTime")]
2021-12-12 06:55:48 +00:00
public DateTime? CreateTime { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "CreateBy")]
2021-12-12 06:55:48 +00:00
public string CreateBy { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "UpdateTime")]
2021-12-12 06:55:48 +00:00
public DateTime? UpdateTime { get; set; }
2024-01-08 14:18:16 +00:00
[Display(Name = "UpdateBy")]
2021-12-12 06:55:48 +00:00
public string UpdateBy { get; set; }
public List<DeviceConfig> DeviceConfigs { get; set; }
public List<DeviceVariable> DeviceVariables { get; set; }
}
}