using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using WalkingTec.Mvvm.Core; namespace IoTGateway.Model { public class Device : TreePoco, 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 DeviceConfigs { get; set; } public List DeviceVariables { get; set; } } }