﻿using HA4IoT.Contracts.Components;
using HA4IoT.Contracts.Components.Commands;

namespace HA4IoT.Actuators.StateMachines
{
    public class PendingComponentCommand
    {
        public IComponent Component { get; set; }

        public ICommand Command { get; set; }

        public void Execute()
        {
            Component?.ExecuteCommand(Command);
        }
    }
}
