mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-29 17:31:37 +00:00
41 lines
1.4 KiB
C#
41 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
|
|
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 string Src
|
|
{
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Src));
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Src), value);
|
|
}
|
|
|
|
public string Alt
|
|
{
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Alt));
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Alt), value);
|
|
}
|
|
|
|
public string Caption
|
|
{
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Caption));
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Caption), 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);
|
|
}
|
|
}
|