iotgateway/IoTGateway.Model/Device.cs
2023-12-23 13:23:22 +02:00

51 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
namespace IoTGateway.Model
{
public class Device : TreePoco<Device>, IBasePoco
{
[Display(Name = "Device Name")]
public string DeviceName { get; set; }
[Display(Name = "Sort")]
public uint Index { get; set; }
[Display(Name = "Description")]
public string Description { get; set; }
public Driver Driver { get; set; }
[Display(Name = "Device PLC")]
public Guid? DriverId { get; set; }
[Display(Name = "Start up")]
public bool AutoStart { get; set; }
[Display(Name = "Change upload")]
public bool CgUpload { get; set; }
[Display(Name = "Archiving cycle ms")]
public uint EnforcePeriod { get; set; }
[Display(Name = "Command interval ms")]
public uint CmdPeriod { get; set; }
[Display(Name = "Device Type")]
public DeviceTypeEnum DeviceTypeEnum { get; set; }
[Display(Name = "Creation time")]
public DateTime? CreateTime { get; set; }
[Display(Name = "Founder")]
public string CreateBy { get; set; }
[Display(Name = "Update time")]
public DateTime? UpdateTime { get; set; }
[Display(Name = "updater")]
public string UpdateBy { get; set; }
public List<DeviceConfig> DeviceConfigs { get; set; }
public List<DeviceVariable> DeviceVariables { get; set; }
}
}