2026-11-28 11:52:17 +01:00
|
|
|
using AIStudio.Tools.Imports;
|
|
|
|
|
|
2026-07-15 12:53:30 +02:00
|
|
|
namespace AIStudio.Tools.Media;
|
|
|
|
|
|
|
|
|
|
/// <summary>Copied owner-specific state suitable for rendering after navigation.</summary>
|
|
|
|
|
public sealed record MediaImportSnapshot
|
|
|
|
|
{
|
2026-11-28 11:52:17 +01:00
|
|
|
public required ImportOwner Owner { get; init; }
|
2026-07-15 12:53:30 +02:00
|
|
|
|
2026-11-28 11:52:17 +01:00
|
|
|
public required ImportTarget Target { get; init; }
|
2026-07-15 12:53:30 +02:00
|
|
|
|
|
|
|
|
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 bool IsBusy => this.Status is MediaImportStatus.QUEUED or MediaImportStatus.RUNNING or MediaImportStatus.CANCELING;
|
|
|
|
|
}
|