first commit -push
This commit is contained in:
11
RobotNet.WebApp/Scripts/Models/ScriptMissionModel.cs
Normal file
11
RobotNet.WebApp/Scripts/Models/ScriptMissionModel.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using RobotNet.Script.Shares;
|
||||
|
||||
namespace RobotNet.WebApp.Scripts.Models;
|
||||
|
||||
public class ScriptMissionModel(int index, ScriptMissionDto data)
|
||||
{
|
||||
public int Index { get; } = index;
|
||||
public string Name { get; } = data.Name;
|
||||
public string Code { get; } = data.Code;
|
||||
public IEnumerable<ScriptValueModel> Parameters { get; } = [.. data.Parameters.Select(p => new ScriptValueModel(p.Name, p.Type, p.Default ?? ""))];
|
||||
}
|
||||
Reference in New Issue
Block a user