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.
57 lines
1.4 KiB
57 lines
1.4 KiB
using Infrastructure.Domain;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Application.Domain.Entities
|
|
{
|
|
/// <summary>
|
|
/// 场景命令
|
|
/// </summary>
|
|
[Display(Name = "命令",Order =23)]
|
|
[Scope]
|
|
[IoTModule]
|
|
public class IoTCommand : BaseEntity
|
|
{
|
|
[Display(Name = "命令名称")]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "序号")]
|
|
public int Order { 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>();
|
|
}
|
|
} |