using RobotNet.Script.Shares;

namespace RobotNet.WebApp.Scripts.Models;

public class ScriptTaskModel(int index, ScriptTaskDto data)
{
    public int Index { get; } = index;
    public string Name { get; } = data.Name;
    public int Interval { get; } = data.Interval;
    public bool Enable { get; set; }
    public string Code { get; } = data.Code;
}
