Initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user