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.
55 lines
1.3 KiB
55 lines
1.3 KiB
using Infrastructure.Domain;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Application.Domain.Entities
|
|
{
|
|
/// <summary>
|
|
/// 场景命令
|
|
/// </summary>
|
|
[Display(Name = "命令")]
|
|
public class Command : 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 Api Api { get; set; }
|
|
|
|
/// <summary>
|
|
/// API Id
|
|
/// </summary>
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public Guid DeviceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// API
|
|
/// </summary>
|
|
public Device Device { get; set; }
|
|
|
|
public List<SceneCommand> SceneCommands { get; set; } = new List<SceneCommand>();
|
|
}
|
|
} |