mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-30 15:31:38 +00:00
fixed inheritance flaws
This commit is contained in:
parent
379940caf8
commit
ee94d8559d
@ -3,8 +3,8 @@
|
|||||||
internal sealed class AssistantButton : AssistantComponentBase
|
internal sealed class AssistantButton : AssistantComponentBase
|
||||||
{
|
{
|
||||||
public override AssistantComponentType Type => AssistantComponentType.BUTTON;
|
public override AssistantComponentType Type => AssistantComponentType.BUTTON;
|
||||||
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 Name
|
public string Name
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,6 +3,6 @@
|
|||||||
public abstract class AssistantComponentBase : IAssistantComponent
|
public abstract class AssistantComponentBase : IAssistantComponent
|
||||||
{
|
{
|
||||||
public abstract AssistantComponentType Type { get; }
|
public abstract AssistantComponentType Type { get; }
|
||||||
public Dictionary<string, object> Props { get; }
|
public abstract Dictionary<string, object> Props { get; set; }
|
||||||
public List<IAssistantComponent> Children { get; }
|
public abstract List<IAssistantComponent> Children { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|||||||
internal sealed class AssistantDropdown : AssistantComponentBase
|
internal sealed class AssistantDropdown : AssistantComponentBase
|
||||||
{
|
{
|
||||||
public override AssistantComponentType Type => AssistantComponentType.DROPDOWN;
|
public override AssistantComponentType Type => AssistantComponentType.DROPDOWN;
|
||||||
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 Name
|
public string Name
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|||||||
internal sealed class AssistantFileContentReader : AssistantComponentBase
|
internal sealed class AssistantFileContentReader : AssistantComponentBase
|
||||||
{
|
{
|
||||||
public override AssistantComponentType Type => AssistantComponentType.FILE_CONTENT_READER;
|
public override AssistantComponentType Type => AssistantComponentType.FILE_CONTENT_READER;
|
||||||
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 Name
|
public string Name
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,6 +3,6 @@
|
|||||||
public class AssistantForm : AssistantComponentBase
|
public class AssistantForm : AssistantComponentBase
|
||||||
{
|
{
|
||||||
public override AssistantComponentType Type => AssistantComponentType.FORM;
|
public override AssistantComponentType Type => AssistantComponentType.FORM;
|
||||||
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();
|
||||||
}
|
}
|
||||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|||||||
internal sealed class AssistantHeading : AssistantComponentBase
|
internal sealed class AssistantHeading : AssistantComponentBase
|
||||||
{
|
{
|
||||||
public override AssistantComponentType Type => AssistantComponentType.HEADING;
|
public override AssistantComponentType Type => AssistantComponentType.HEADING;
|
||||||
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 Text
|
public string Text
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|||||||
internal sealed class AssistantImage : AssistantComponentBase
|
internal sealed class AssistantImage : AssistantComponentBase
|
||||||
{
|
{
|
||||||
public override AssistantComponentType Type => AssistantComponentType.IMAGE;
|
public override AssistantComponentType Type => AssistantComponentType.IMAGE;
|
||||||
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 Src
|
public string Src
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|||||||
internal sealed class AssistantList : AssistantComponentBase
|
internal sealed class AssistantList : AssistantComponentBase
|
||||||
{
|
{
|
||||||
public override AssistantComponentType Type => AssistantComponentType.LIST;
|
public override AssistantComponentType Type => AssistantComponentType.LIST;
|
||||||
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 List<AssistantListItem> Items
|
public List<AssistantListItem> Items
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|||||||
internal sealed class AssistantProfileSelection : AssistantComponentBase
|
internal sealed class AssistantProfileSelection : AssistantComponentBase
|
||||||
{
|
{
|
||||||
public override AssistantComponentType Type => AssistantComponentType.PROFILE_SELECTION;
|
public override AssistantComponentType Type => AssistantComponentType.PROFILE_SELECTION;
|
||||||
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 ValidationMessage
|
public string ValidationMessage
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|||||||
internal sealed class AssistantProviderSelection : AssistantComponentBase
|
internal sealed class AssistantProviderSelection : AssistantComponentBase
|
||||||
{
|
{
|
||||||
public override AssistantComponentType Type => AssistantComponentType.PROVIDER_SELECTION;
|
public override AssistantComponentType Type => AssistantComponentType.PROVIDER_SELECTION;
|
||||||
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 Name
|
public string Name
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|||||||
internal sealed class AssistantSwitch : AssistantComponentBase
|
internal sealed class AssistantSwitch : AssistantComponentBase
|
||||||
{
|
{
|
||||||
public override AssistantComponentType Type => AssistantComponentType.SWITCH;
|
public override AssistantComponentType Type => AssistantComponentType.SWITCH;
|
||||||
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 Name
|
public string Name
|
||||||
{
|
{
|
||||||
|
|||||||
@ -4,9 +4,9 @@ internal sealed class AssistantText : AssistantComponentBase
|
|||||||
{
|
{
|
||||||
public override AssistantComponentType Type => AssistantComponentType.TEXT;
|
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
|
public string Content
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|||||||
internal sealed class AssistantTextArea : AssistantComponentBase
|
internal sealed class AssistantTextArea : AssistantComponentBase
|
||||||
{
|
{
|
||||||
public override AssistantComponentType Type => AssistantComponentType.TEXT_AREA;
|
public override AssistantComponentType Type => AssistantComponentType.TEXT_AREA;
|
||||||
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 Name
|
public string Name
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|||||||
internal sealed class AssistantWebContentReader : AssistantComponentBase
|
internal sealed class AssistantWebContentReader : AssistantComponentBase
|
||||||
{
|
{
|
||||||
public override AssistantComponentType Type => AssistantComponentType.WEB_CONTENT_READER;
|
public override AssistantComponentType Type => AssistantComponentType.WEB_CONTENT_READER;
|
||||||
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 Name
|
public string Name
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user