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
{
2023-12-23 09:34:58 +00:00
[Display(Name = "Name")]
2021-12-12 06:55:48 +00:00
public string DeviceName { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "sort")]
2021-12-12 06:55:48 +00:00
public uint Index { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "describe")]
2021-12-12 06:55:48 +00:00
public string Description { get; set; }
public Driver Driver { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "drive")]
2021-12-12 06:55:48 +00:00
public Guid? DriverId { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "start up")]
2021-12-12 06:55:48 +00:00
public bool AutoStart { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "Change upload")]
public bool CgUpload { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "Archiving cycle ms")]
public uint EnforcePeriod { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "Command interval ms")]
2022-10-12 06:35:45 +00:00
public uint CmdPeriod { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "Type")]
2021-12-12 06:55:48 +00:00
public DeviceTypeEnum DeviceTypeEnum { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "Creation time")]
2021-12-12 06:55:48 +00:00
public DateTime? CreateTime { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "Founder")]
2021-12-12 06:55:48 +00:00
public string CreateBy { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "Update time")]
2021-12-12 06:55:48 +00:00
public DateTime? UpdateTime { get; set; }
2023-12-23 09:34:58 +00:00
[Display(Name = "updater")]
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; }
}
}