Files
Denso/srcs/RobotNet10/Components/RobotNet10.CustomConfigurationEditor/Models/ConfigVariableModel.cs
2026-07-03 16:31:37 +07:00

19 lines
784 B
C#

namespace RobotNet10.CustomConfigurationEditor.Models;
/// <summary>
/// Model cho ConfigVariable trong frontend
/// </summary>
public class ConfigVariableModel
{
public string Name { get; set; } = string.Empty;
public string Type { get; set; } = string.Empty; // "string", "int", "double", "bool", "object", "array", "enum"
public object? Value { get; set; }
// Optional properties
public double? Min { get; set; } // Cho int và double (0 nếu không dùng)
public double? Max { get; set; } // Cho int và double (0 nếu không dùng)
public string Roles { get; set; } = string.Empty; // Roles string (có thể empty)
public List<string>? EnumValues { get; set; } // Cho type Enum - danh sách các giá trị cho phép
}