Defined initial data source types

This commit is contained in:
Thorsten Sommer 2025-01-05 16:03:52 +01:00
parent 06f66fdab2
commit 8d2b451819
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 27 additions and 0 deletions

View File

@ -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",
};
}
}

View File

@ -0,0 +1,11 @@
namespace AIStudio.Settings.DataModel;
public enum DataSourceType
{
NONE = 0,
LOCAL_FILE,
LOCAL_DIRECTORY,
ERI,
}