Class DownloadedCell
- Namespace
- EncDotNet.S100.Collections.Downloads
- Assembly
- EncDotNet.S100.Collections.dll
An ENC cell — or a package of cells — downloaded into a managed folder: what was downloaded and where its exchange set now lies.
public sealed record DownloadedCell : IEquatable<DownloadedCell>
- Inheritance
-
DownloadedCell
- Implements
- Inherited Members
Constructors
DownloadedCell(string, int?, int?, DateTimeOffset?, DateTimeOffset, LocalItemLocation)
An ENC cell — or a package of cells — downloaded into a managed folder: what was downloaded and where its exchange set now lies.
public DownloadedCell(string Name, int? Edition, int? Update, DateTimeOffset? PublishedAt, DateTimeOffset DownloadedAt, LocalItemLocation Location)
Parameters
NamestringThe cell name, or the package name.
Editionint?The edition downloaded (none for a package).
Updateint?The update number downloaded (none for a package).
PublishedAtDateTimeOffset?When the provider published the download, if known.
DownloadedAtDateTimeOffsetWhen the download completed.
LocationLocalItemLocationThe downloaded cell (for a package, its first cell), ready to load; for an S-100 package with no current datasets, its catalogue.
Properties
Datasets
The downloaded base cells by name (case-insensitive); for a single cell, just Location.
public IReadOnlyDictionary<string, LocalItemLocation> Datasets { get; init; }
Property Value
DownloadedAt
When the download completed.
public DateTimeOffset DownloadedAt { get; init; }
Property Value
Edition
The edition downloaded (none for a package).
public int? Edition { get; init; }
Property Value
- int?
IsPackage
True when this is a package: a download holding any number of cells.
public bool IsPackage { get; init; }
Property Value
Location
The downloaded cell (for a package, its first cell), ready to load; for an S-100 package with no current datasets, its catalogue.
public LocalItemLocation Location { get; init; }
Property Value
Name
The cell name, or the package name.
public string Name { get; init; }
Property Value
PublishedAt
When the provider published the download, if known.
public DateTimeOffset? PublishedAt { get; init; }
Property Value
Revision
The Revision downloaded, if the item had one.
public string? Revision { get; init; }
Property Value
Signature
The data signature check made when a SECOM object was downloaded (issue #804); null for other downloads.
public SecomSignatureCheck? Signature { get; init; }
Property Value
Update
The update number downloaded (none for a package).
public int? Update { get; init; }
Property Value
- int?
Methods
IsOlderThan(CollectionItem)
True when item (a feed item for the same cell or
package) describes a newer download: a newer edition or update, or —
for a package, or a dataset without editions such as a forecast run
(#685) — a later publication date, or another
Revision (#916).
public bool IsOlderThan(CollectionItem item)
Parameters
itemCollectionItem