You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.6 KiB

using Infrastructure.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Application.Domain.Entities
{
[Display(Name = "数据")]
[Scope]
[Module("物联管控", "IoTCenter")]
public class IoTData : BaseEntity
{
[Display(Name = "键")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Key { get; set; }
[Display(Name = "值")]
public string Value { get; set; }
public int? IntValue { get; set; }
public double? DoubleValue { get; set; }
public DateTime? DateTimeValue { get; set; }
[Display(Name = "枚举候选值列表")]
public string EnumValues { get; set; }
[Display(Name = "名称")]
public string Name { get; set; }
[Display(Name = "数据分类")]
public IoTDataType DataType { get; set; }
[Display(Name = "数值类型")]
public IoTValueType ValueType { get; set; }
[Display(Name = "对象模式")]
public string ValueSchema { get; set; }
[Display(Name = "单位")]
public string Unit { get; set; }
[Display(Name = "描述")]
public string Description { get; set; }
[Display(Name = "时间戳")]
public long Timestamp { get; set; }
[Display(Name = "隐藏")]
public bool Hidden { get; set; }
[Display(Name = "设备Id")]
public Guid IoTDeviceId { get; set; }
[Display(Name = "设备")]
public IoTDevice IoTDevice { get; set; }
public List<IoTTigger> IoTTiggers { get; set; } = new List<IoTTigger>();
}
}