using System.ComponentModel.DataAnnotations;

namespace Intentor.Models;

/// <summary>
/// Describes what to do in Home Assistant when an Intent is executed.
/// Stored as part of Intent (owned type).
/// </summary>
public sealed class HomeAssistantAction
{
    [Required]
    public HomeAssistantActionType Type { get; set; }

    /// <summary>
    /// The HA entity id, e.g. "scene.relax" or "script.good_night".
    /// </summary>
    [Required]
    [MaxLength(255)]
    public string EntityId { get; set; } = string.Empty;
}
