2026-11-28 11:52:17 +01:00
|
|
|
namespace AIStudio.Tools.Imports;
|
2026-08-02 21:41:12 +02:00
|
|
|
|
2026-11-28 11:52:17 +01:00
|
|
|
/// <summary>Capabilities of an import owner kind.</summary>
|
|
|
|
|
public static class ImportOwnerKindExtensions
|
2026-08-02 21:41:12 +02:00
|
|
|
{
|
|
|
|
|
/// <param name="kind">The owner kind to look up.</param>
|
2026-11-28 11:52:17 +01:00
|
|
|
extension(ImportOwnerKind kind)
|
2026-11-04 10:46:18 +01:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets whether the owner stores its own source list and transcripts.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// Owners that persist their own sources take the attached media over immediately and keep it
|
2026-11-28 11:52:17 +01:00
|
|
|
/// next to the stored document, see <see cref="ImportOwnerKind.VISUAL_BRIEFING"/>. The
|
2026-11-04 10:46:18 +01:00
|
|
|
/// attachment control must therefore neither wait for the transcription to finish before showing
|
|
|
|
|
/// the file, nor deliver the completed transcripts back into its own list afterwards, because
|
|
|
|
|
/// the owner already holds them. All other owners rely on that delivery instead.
|
|
|
|
|
/// </remarks>
|
2026-11-04 13:00:56 +01:00
|
|
|
/// <value><c>true</c> when the owner persists its own sources.</value>
|
2026-11-28 11:52:17 +01:00
|
|
|
public bool PersistsOwnSources => kind is ImportOwnerKind.VISUAL_BRIEFING;
|
2026-11-04 10:46:18 +01:00
|
|
|
}
|
2026-08-02 21:41:12 +02:00
|
|
|
}
|