2024-07-09 18:25:48 +00:00
|
|
|
namespace AIStudio.Components.Blocks;
|
|
|
|
|
2024-07-11 06:54:03 +00:00
|
|
|
public class TreeItemData : ITreeItem
|
2024-07-09 18:25:48 +00:00
|
|
|
{
|
|
|
|
public WorkspaceBranch Branch { get; init; } = WorkspaceBranch.NONE;
|
|
|
|
|
|
|
|
public int Depth { get; init; }
|
|
|
|
|
|
|
|
public string Text { get; init; } = string.Empty;
|
|
|
|
|
|
|
|
public string Icon { get; init; } = string.Empty;
|
|
|
|
|
2024-07-10 17:27:49 +00:00
|
|
|
public bool IsChat { get; init; }
|
|
|
|
|
2024-07-11 06:54:03 +00:00
|
|
|
public string Path { get; init; } = string.Empty;
|
2024-07-09 18:25:48 +00:00
|
|
|
|
|
|
|
public bool Expandable { get; init; } = true;
|
|
|
|
|
2024-07-11 06:54:03 +00:00
|
|
|
public HashSet<ITreeItem> Children { get; init; } = [];
|
2024-07-09 18:25:48 +00:00
|
|
|
}
|