19 lines
757 B
C#
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
|
|
}
|
|
|