mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-04-09 23:01:38 +00:00
33 lines
1.2 KiB
C#
33 lines
1.2 KiB
C#
|
|
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
||
|
|
|
||
|
|
internal sealed class AssistantHeading : AssistantComponentBase
|
||
|
|
{
|
||
|
|
public override AssistantComponentType Type => AssistantComponentType.HEADING;
|
||
|
|
public override Dictionary<string, object> Props { get; set; } = new();
|
||
|
|
public override List<IAssistantComponent> Children { get; set; } = new();
|
||
|
|
|
||
|
|
public string Text
|
||
|
|
{
|
||
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Text));
|
||
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Text), value);
|
||
|
|
}
|
||
|
|
|
||
|
|
public int Level
|
||
|
|
{
|
||
|
|
get => AssistantComponentPropHelper.ReadInt(this.Props, nameof(this.Level), 2);
|
||
|
|
set => AssistantComponentPropHelper.WriteInt(this.Props, nameof(this.Level), value);
|
||
|
|
}
|
||
|
|
|
||
|
|
public string Class
|
||
|
|
{
|
||
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Class));
|
||
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Class), value);
|
||
|
|
}
|
||
|
|
|
||
|
|
public string Style
|
||
|
|
{
|
||
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Style));
|
||
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Style), value);
|
||
|
|
}
|
||
|
|
}
|