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.

58 lines
1.4 KiB

using Infrastructure.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace IoT.Shared.Application.Domain.Entities
{
/// <summary>
/// 场景命令
/// </summary>
[Display(Name = "命令")]
[Scope]
[Group("物联管控", "IoTCenter")]
public class IoTCommand : BaseEntity
{
[Display(Name = "命令名称")]
public string Name { get; set; }
[Display(Name = "序号")]
public int DisplayOrder { get; set; }
[Display(Name = "隐藏")]
public bool Disabled { get; set; }
[Display(Name = "延迟")]
public int Delay { get; set; }
/// <summary>
/// 参数
/// </summary>
public string QueryString { get; set; }
/// <summary>
/// API Id
/// </summary>
[Required(ErrorMessage = nameof(RequiredAttribute))]
public Guid ApiId { get; set; }
/// <summary>
/// API
/// </summary>
public IoTApi Api { get; set; }
/// <summary>
/// API Id
/// </summary>
[Required(ErrorMessage = nameof(RequiredAttribute))]
public Guid DeviceId { get; set; }
/// <summary>
/// API
/// </summary>
public IoTDevice IoTDevice { get; set; }
public List<IoTSceneIoTCommand> IoTSceneIoTCommands { get; set; } = new List<IoTSceneIoTCommand>();
}
}