namespace AIStudio.Tools.Media;
/// Capabilities of a media-import owner kind.
public static class MediaImportOwnerKindExtensions
{
///
/// Gets whether the owner stores its own source list and transcripts.
///
///
/// Owners that persist their own sources take the attached media over immediately and keep it
/// next to the stored document, see . The
/// 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.
///
/// The owner kind to look up.
/// true when the owner persists its own sources.
public static bool PersistsOwnSources(this MediaImportOwnerKind kind) => kind is MediaImportOwnerKind.VISUAL_BRIEFING;
}