Files
I150/srcs/RobotNet10/Commons/RobotNet10.CustomConfiguration/Models/ConfigVariable.cs
2026-07-03 16:37:12 +07:00

19 lines
671 B
C#

namespace RobotNet10.CustomConfiguration.Models;
/// <summary>
/// Model đại diện cho một variable trong config
/// </summary>
public class ConfigVariable
{
public string Name { get; set; } = string.Empty;
public ConfigVariableType Type { get; set; }
public object? Value { get; set; }
// Optional properties
public double? Min { get; set; } // Cho int và double
public double? Max { get; set; } // Cho int và double
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
}