mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 19:33:48 +00:00
Defined initial data source types
This commit is contained in:
2 files changed
+27
No files matched your search
@@ -0,0 +1,16 @@
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
public static class DataSourceExtension
|
||||
{
|
||||
public static string GetDisplayName(this DataSourceType type)
|
||||
{
|
||||
return type switch
|
||||
{
|
||||
DataSourceType.LOCAL_FILE => "Local File",
|
||||
DataSourceType.LOCAL_DIRECTORY => "Local Directory",
|
||||
DataSourceType.ERI => "ERI Server",
|
||||
|
||||
_ => "None",
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
public enum DataSourceType
|
||||
{
|
||||
NONE = 0,
|
||||
|
||||
LOCAL_FILE,
|
||||
LOCAL_DIRECTORY,
|
||||
|
||||
ERI,
|
||||
}
|
||||
Reference in new issue
Block a user