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
StateLibraryDownloadItemStateQueued, running or failed.
BytesReceivedlongBytes received so far (running).
TotalByteslong?The download's size, if known.
ErrorstringWhy it failed (failed).
Properties
BytesReceived
Bytes received so far (running).
public long BytesReceived { get; init; }
Property Value
Error
Why it failed (failed).
public string? Error { get; init; }
Property Value
Fraction
The fraction received (0–1), when the size is known.
public double? Fraction { get; }
Property Value
State
Queued, running or failed.
public LibraryDownloadItemState State { get; init; }
Property Value
TotalBytes
The download's size, if known.
public long? TotalBytes { get; init; }
Property Value
- long?