Added a ValueType concept for Settings. Currently unused but planned to assist with editing settings from chat.

This commit is contained in:
barelyprofessional
2025-02-08 23:41:55 +08:00
parent f1e01be74d
commit 01847c5d3c
4 changed files with 143 additions and 60 deletions

View File

@@ -1,3 +1,5 @@
using KfChatDotNetBot.Models.DbModels;
namespace KfChatDotNetBot.Models;
public class BuiltInSettingsModel
@@ -10,4 +12,5 @@ public class BuiltInSettingsModel
public string? Default { get; set; }
public required bool IsSecret { get; set; }
public required TimeSpan CacheDuration { get; set; } = TimeSpan.Zero;
public required SettingValueType ValueType { get; set; }
}