Table of Contents

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

Outcome OperationOutcome

Core's classification of the whole run.

Extract bool

True for an extraction, false for compression.

CreatedCount int

Archives created (compress), or result folders — one per extracted archive (extract).

ProblemCount int

Errors plus skipped items plus warnings.

Seconds int

Elapsed whole seconds, at least 1 so the line never says "0 s".

ShowInFolderPath string

What "Show in folder" points at, or null when nothing was created.

DestinationFolder string

The 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

int

DestinationFolder

The folder the operation wrote into.

public string DestinationFolder { get; init; }

Property Value

string

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

string

Extract

True for an extraction, false for compression.

public bool Extract { get; init; }

Property Value

bool

HasDetails

True when "Details..." has something to show.

public bool HasDetails { get; }

Property Value

bool

Outcome

Core's classification of the whole run.

public OperationOutcome Outcome { get; init; }

Property Value

OperationOutcome

ProblemCount

Errors plus skipped items plus warnings.

public int ProblemCount { get; init; }

Property Value

int

Seconds

Elapsed whole seconds, at least 1 so the line never says "0 s".

public int Seconds { get; init; }

Property Value

int

ShowInFolderPath

What "Show in folder" points at, or null when nothing was created.

public string? ShowInFolderPath { get; init; }

Property Value

string

TextArgs

The line's format arguments: seconds and count for a clean run, else the problem count.

public IReadOnlyList<int> TextArgs { get; }

Property Value

IReadOnlyList<int>

TextKey

The resource key of the line (plain, read through GetString — T-F104).

public string TextKey { get; }

Property Value

string

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

result ArchiveResult
elapsed TimeSpan
extract bool
destinationFolder string

Returns

OutcomeLine