|
|
@ -17,16 +17,14 @@ public class SettingDefinition |
|
|
get => _displayName; |
|
|
get => _displayName; |
|
|
set => _displayName = Check.NotNull(value, nameof(value)); |
|
|
set => _displayName = Check.NotNull(value, nameof(value)); |
|
|
} |
|
|
} |
|
|
private ILocalizableString _displayName; |
|
|
private ILocalizableString _displayName = default!; |
|
|
|
|
|
|
|
|
[CanBeNull] |
|
|
public ILocalizableString? Description { get; set; } |
|
|
public ILocalizableString Description { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Default value of the setting.
|
|
|
/// Default value of the setting.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[CanBeNull] |
|
|
public string? DefaultValue { get; set; } |
|
|
public string DefaultValue { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Can clients see this setting and it's value.
|
|
|
/// Can clients see this setting and it's value.
|
|
|
@ -61,9 +59,9 @@ public class SettingDefinition |
|
|
|
|
|
|
|
|
public SettingDefinition( |
|
|
public SettingDefinition( |
|
|
string name, |
|
|
string name, |
|
|
string defaultValue = null, |
|
|
string? defaultValue = null, |
|
|
ILocalizableString displayName = null, |
|
|
ILocalizableString? displayName = null, |
|
|
ILocalizableString description = null, |
|
|
ILocalizableString? description = null, |
|
|
bool isVisibleToClients = false, |
|
|
bool isVisibleToClients = false, |
|
|
bool isInherited = true, |
|
|
bool isInherited = true, |
|
|
bool isEncrypted = false) |
|
|
bool isEncrypted = false) |
|
|
|