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.

54 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 = "命令")]
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; }
/// <summary>
/// 参数
/// </summary>
public string QueryString { get; set; }
/// <summary>
/// API Id
/// </summary>
[Required]
public Guid ApiId { get; set; }
/// <summary>
/// API
/// </summary>
public Api Api { get; set; }
/// <summary>
/// API Id
/// </summary>
[Required]
public Guid DeviceId { get; set; }
/// <summary>
/// API
/// </summary>
public Device Device { get; set; }
public List<SceneCommand> SceneCommands { get; set; } = new List<SceneCommand>();
public List<TimerCommand> TimerCommands { get; set; } = new List<TimerCommand>();
public List<TiggerCommand> TiggerCommands { get; set; } = new List<TiggerCommand>();
}
}