Class OutcomeLine
- Namespace
- Archiver.App.Core
- Assembly
- Archiver.App.Core.dll
T-F211: the result line the footer keeps until the next action (it used to be overwritten by "Ready" a moment after the operation ended, so a clean run showed nothing).
public sealed record OutcomeLine : IEquatable<OutcomeLine>
- Inheritance
-
OutcomeLine
- Implements
- Inherited Members
Constructors
OutcomeLine(OperationOutcome, bool, int, int, int, string?, string)
T-F211: the result line the footer keeps until the next action (it used to be overwritten by "Ready" a moment after the operation ended, so a clean run showed nothing).
public OutcomeLine(OperationOutcome Outcome, bool Extract, int CreatedCount, int ProblemCount, int Seconds, string? ShowInFolderPath, string DestinationFolder)
Parameters
OutcomeOperationOutcomeCore's classification of the whole run.
ExtractboolTrue for an extraction, false for compression.
CreatedCountintArchives created (compress), or result folders — one per extracted archive (extract).
ProblemCountintErrors plus skipped items plus warnings.
SecondsintElapsed whole seconds, at least 1 so the line never says "0 s".
ShowInFolderPathstringWhat "Show in folder" points at, or null when nothing was created.
DestinationFolderstringThe folder the operation wrote into.
Properties
CreatedCount
Archives created (compress), or result folders — one per extracted archive (extract).
public int CreatedCount { get; init; }
Property Value
DestinationFolder
The folder the operation wrote into.
public string DestinationFolder { get; init; }
Property Value
ExplorerArguments
Explorer's arguments for "Show in folder": the created item selected in its folder, or the destination opened when the extraction landed straight in it (a flat archive reports the destination itself). Null when nothing was created.
public string? ExplorerArguments { get; }
Property Value
Extract
True for an extraction, false for compression.
public bool Extract { get; init; }
Property Value
HasDetails
True when "Details..." has something to show.
public bool HasDetails { get; }
Property Value
Outcome
Core's classification of the whole run.
public OperationOutcome Outcome { get; init; }
Property Value
ProblemCount
Errors plus skipped items plus warnings.
public int ProblemCount { get; init; }
Property Value
Seconds
Elapsed whole seconds, at least 1 so the line never says "0 s".
public int Seconds { get; init; }
Property Value
ShowInFolderPath
What "Show in folder" points at, or null when nothing was created.
public string? ShowInFolderPath { get; init; }
Property Value
TextArgs
The line's format arguments: seconds and count for a clean run, else the problem count.
public IReadOnlyList<int> TextArgs { get; }
Property Value
TextKey
The resource key of the line (plain, read through GetString — T-F104).
public string TextKey { get; }
Property Value
Methods
From(ArchiveResult, TimeSpan, bool, string)
Builds the line from an operation's result.
public static OutcomeLine From(ArchiveResult result, TimeSpan elapsed, bool extract, string destinationFolder)
Parameters
resultArchiveResultelapsedTimeSpanextractbooldestinationFolderstring