fixed inheritance flaws

This commit is contained in:
krut_ni 2026-03-03 15:44:31 +01:00
parent 379940caf8
commit ee94d8559d
No known key found for this signature in database
GPG Key ID: A5C0151B4DDB172C
14 changed files with 29 additions and 29 deletions

View File

@ -3,8 +3,8 @@
internal sealed class AssistantButton : AssistantComponentBase
{
public override AssistantComponentType Type => AssistantComponentType.BUTTON;
public Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public override Dictionary<string, object> Props { get; set; } = new();
public override List<IAssistantComponent> Children { get; set; } = new();
public string Name
{

View File

@ -3,6 +3,6 @@
public abstract class AssistantComponentBase : IAssistantComponent
{
public abstract AssistantComponentType Type { get; }
public Dictionary<string, object> Props { get; }
public List<IAssistantComponent> Children { get; }
}
public abstract Dictionary<string, object> Props { get; set; }
public abstract List<IAssistantComponent> Children { get; set; }
}

View File

@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
internal sealed class AssistantDropdown : AssistantComponentBase
{
public override AssistantComponentType Type => AssistantComponentType.DROPDOWN;
public Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public override Dictionary<string, object> Props { get; set; } = new();
public override List<IAssistantComponent> Children { get; set; } = new();
public string Name
{

View File

@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
internal sealed class AssistantFileContentReader : AssistantComponentBase
{
public override AssistantComponentType Type => AssistantComponentType.FILE_CONTENT_READER;
public Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public override Dictionary<string, object> Props { get; set; } = new();
public override List<IAssistantComponent> Children { get; set; } = new();
public string Name
{

View File

@ -3,6 +3,6 @@
public class AssistantForm : AssistantComponentBase
{
public override AssistantComponentType Type => AssistantComponentType.FORM;
public Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public override Dictionary<string, object> Props { get; set; } = new();
public override List<IAssistantComponent> Children { get; set; } = new();
}

View File

@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
internal sealed class AssistantHeading : AssistantComponentBase
{
public override AssistantComponentType Type => AssistantComponentType.HEADING;
public Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public override Dictionary<string, object> Props { get; set; } = new();
public override List<IAssistantComponent> Children { get; set; } = new();
public string Text
{

View File

@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
internal sealed class AssistantImage : AssistantComponentBase
{
public override AssistantComponentType Type => AssistantComponentType.IMAGE;
public Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public override Dictionary<string, object> Props { get; set; } = new();
public override List<IAssistantComponent> Children { get; set; } = new();
public string Src
{

View File

@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
internal sealed class AssistantList : AssistantComponentBase
{
public override AssistantComponentType Type => AssistantComponentType.LIST;
public Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public override Dictionary<string, object> Props { get; set; } = new();
public override List<IAssistantComponent> Children { get; set; } = new();
public List<AssistantListItem> Items
{

View File

@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
internal sealed class AssistantProfileSelection : AssistantComponentBase
{
public override AssistantComponentType Type => AssistantComponentType.PROFILE_SELECTION;
public Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public override Dictionary<string, object> Props { get; set; } = new();
public override List<IAssistantComponent> Children { get; set; } = new();
public string ValidationMessage
{

View File

@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
internal sealed class AssistantProviderSelection : AssistantComponentBase
{
public override AssistantComponentType Type => AssistantComponentType.PROVIDER_SELECTION;
public Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public override Dictionary<string, object> Props { get; set; } = new();
public override List<IAssistantComponent> Children { get; set; } = new();
public string Name
{

View File

@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
internal sealed class AssistantSwitch : AssistantComponentBase
{
public override AssistantComponentType Type => AssistantComponentType.SWITCH;
public Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public override Dictionary<string, object> Props { get; set; } = new();
public override List<IAssistantComponent> Children { get; set; } = new();
public string Name
{

View File

@ -4,9 +4,9 @@ internal sealed class AssistantText : AssistantComponentBase
{
public override AssistantComponentType Type => AssistantComponentType.TEXT;
public Dictionary<string, object> Props { get; set; } = new();
public override Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public override List<IAssistantComponent> Children { get; set; } = new();
public string Content
{

View File

@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
internal sealed class AssistantTextArea : AssistantComponentBase
{
public override AssistantComponentType Type => AssistantComponentType.TEXT_AREA;
public Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public override Dictionary<string, object> Props { get; set; } = new();
public override List<IAssistantComponent> Children { get; set; } = new();
public string Name
{

View File

@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
internal sealed class AssistantWebContentReader : AssistantComponentBase
{
public override AssistantComponentType Type => AssistantComponentType.WEB_CONTENT_READER;
public Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public override Dictionary<string, object> Props { get; set; } = new();
public override List<IAssistantComponent> Children { get; set; } = new();
public string Name
{