mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 19:32:10 +00:00
23 lines
821 B
C#
23 lines
821 B
C#
using AIStudio.Chat;
|
|
|
|
namespace AIStudio.Tools.Services;
|
|
|
|
/// <summary>Copied owner-specific state suitable for rendering after navigation.</summary>
|
|
public sealed record MediaImportSnapshot
|
|
{
|
|
public required MediaImportOwner Owner { get; init; }
|
|
|
|
public required MediaTranscriptionPhase Phase { get; init; }
|
|
|
|
public required MediaImportStatus Status { get; init; }
|
|
|
|
public string CurrentFileName { get; init; } = string.Empty;
|
|
|
|
public double? Progress { get; init; }
|
|
|
|
public IReadOnlyList<FileAttachment> CompletedAttachments { get; init; } = [];
|
|
|
|
public IReadOnlyDictionary<string, string> CompletedTextTargets { get; init; } = new Dictionary<string, string>();
|
|
|
|
public bool IsBusy => this.Status is MediaImportStatus.QUEUED or MediaImportStatus.RUNNING or MediaImportStatus.CANCELING;
|
|
} |