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

19 lines
757 B
C#

namespace RobotNet10.CustomConfiguration.DTOs;
/// <summary>
/// DTO cho ConfigVariable
/// </summary>
public class ConfigVariableDto
{
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
}