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.
33 lines
826 B
33 lines
826 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Infrastructure.Domain;
|
|
|
|
namespace Application.Domain.Entities
|
|
{
|
|
[Display(Name = "场景")]
|
|
public class Scene : BaseEntity, IDisableRemove
|
|
{
|
|
[Display(Name = "名称")]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "启用定时")]
|
|
public bool Timed { get; set; }
|
|
|
|
[Display(Name = "定时表达式")]
|
|
public string Corn { get; set; }
|
|
|
|
[Display(Name = "节点Id")]
|
|
public Guid NodeId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 节点
|
|
/// </summary>
|
|
public Node Node { get; set; }
|
|
|
|
/// <summary>
|
|
/// 命令
|
|
/// </summary>
|
|
public List<Command> Commands { get; set; } = new List<Command>();
|
|
}
|
|
} |