Table of Contents

Class LibraryDownloadItemStatus

Namespace
EncDotNet.S100.Collections.Library
Assembly
EncDotNet.S100.Collections.dll

One item's download status.

public sealed record LibraryDownloadItemStatus : IEquatable<LibraryDownloadItemStatus>
Inheritance
LibraryDownloadItemStatus
Implements
Inherited Members

Constructors

LibraryDownloadItemStatus(LibraryDownloadItemState, long, long?, string?)

One item's download status.

public LibraryDownloadItemStatus(LibraryDownloadItemState State, long BytesReceived = 0, long? TotalBytes = null, string? Error = null)

Parameters

State LibraryDownloadItemState

Queued, running or failed.

BytesReceived long

Bytes received so far (running).

TotalBytes long?

The download's size, if known.

Error string

Why it failed (failed).

Properties

BytesReceived

Bytes received so far (running).

public long BytesReceived { get; init; }

Property Value

long

Error

Why it failed (failed).

public string? Error { get; init; }

Property Value

string

Fraction

The fraction received (0–1), when the size is known.

public double? Fraction { get; }

Property Value

double?

State

Queued, running or failed.

public LibraryDownloadItemState State { get; init; }

Property Value

LibraryDownloadItemState

TotalBytes

The download's size, if known.

public long? TotalBytes { get; init; }

Property Value

long?