From c62bcb11f41bc840b7dd290446c010ada11a9c64 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 5 Jan 2025 16:14:41 +0100 Subject: [PATCH] Added documentation to data source types --- .../Settings/DataModel/DataSourceType.cs | 16 ++++++++++++++++ .../DataModel/DataSourceTypeExtension.cs | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/app/MindWork AI Studio/Settings/DataModel/DataSourceType.cs b/app/MindWork AI Studio/Settings/DataModel/DataSourceType.cs index beecc5d1..76556a82 100644 --- a/app/MindWork AI Studio/Settings/DataModel/DataSourceType.cs +++ b/app/MindWork AI Studio/Settings/DataModel/DataSourceType.cs @@ -1,11 +1,27 @@ namespace AIStudio.Settings.DataModel; +/// +/// AI Studio data source types. +/// public enum DataSourceType { + /// + /// No data source. + /// NONE = 0, + /// + /// One file on the local machine (or a network share). + /// LOCAL_FILE, + + /// + /// A directory on the local machine (or a network share). + /// LOCAL_DIRECTORY, + /// + /// External data source accessed via an ERI server, cf. https://github.com/MindWorkAI/ERI. + /// ERI, } \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/DataModel/DataSourceTypeExtension.cs b/app/MindWork AI Studio/Settings/DataModel/DataSourceTypeExtension.cs index e10d060c..ce25424b 100644 --- a/app/MindWork AI Studio/Settings/DataModel/DataSourceTypeExtension.cs +++ b/app/MindWork AI Studio/Settings/DataModel/DataSourceTypeExtension.cs @@ -1,7 +1,15 @@ namespace AIStudio.Settings.DataModel; +/// +/// Extension methods for data source types. +/// public static class DataSourceTypeExtension { + /// + /// Get the display name of the data source type. + /// + /// The data source type. + /// The display name of the data source type. public static string GetDisplayName(this DataSourceType type) { return type switch