using RobotNet.Script.Shares;

namespace RobotNet.WebApp.Scripts.Models;

public class InstanceMissionModel(int index, InstanceMissionDto mission)
{
    public int Index { get; set; } = index;
    public Guid Id { get; set; } = mission.Id;
    public string MissionName { get; set; } = mission.MissionName;
    public string Parameters { get; set; } = mission.Parameters;
    public DateTime CreatedAt { get; set; } = mission.CreatedAt;
    public MissionStatus Status { get; set; } = mission.Status;
    public string? Log { get; set; } = mission.Log ?? string.Empty;
}
