Table of Contents

Class LibraryItemText

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

The tags and details of a Library item, in the words the viewer's Library panel uses, for every host (#792).

public static class LibraryItemText
Inheritance
LibraryItemText
Inherited Members

Methods

Details(LibraryItemTextInput)

The item's details in groups: Forecast (its run), Product (what it is), Coverage (where), Source (where it comes from, then the source's own properties). Empty groups are left out.

public static IReadOnlyList<LibraryDetailGroup> Details(LibraryItemTextInput input)

Parameters

input LibraryItemTextInput

The item.

Returns

IReadOnlyList<LibraryDetailGroup>

DownloadTags(LibraryDownloadItemStatus?)

"Queued" or "Failed ยท retry" for an item in a download, else nothing.

public static IEnumerable<LibraryTag> DownloadTags(LibraryDownloadItemStatus? download)

Parameters

download LibraryDownloadItemStatus

Where the item stands in a download.

Returns

IEnumerable<LibraryTag>

ForecastRunTags(IEnumerable<LibraryLoadState?>, LibraryAvailability)

The tags of a forecast run: Loaded or On pan when any of its files is, then New run or Expired.

public static IEnumerable<LibraryTag> ForecastRunTags(IEnumerable<LibraryLoadState?> loadStates, LibraryAvailability availability)

Parameters

loadStates IEnumerable<LibraryLoadState?>

The load state of each of the run's files.

availability LibraryAvailability

The run's availability.

Returns

IEnumerable<LibraryTag>

IsForecastRun(CollectionItem, LibrarySource)

True for an item that stands for a whole forecast run: a model's one file when runs download as one file per model.

public static bool IsForecastRun(CollectionItem item, LibrarySource source)

Parameters

item CollectionItem

The item.

source LibrarySource

The source that lists it.

Returns

bool

IsPackageEntry(CollectionItem)

True for a package not yet listed by its datasets: a community-list entry, or a SECOM exchange-set object (#916), that may hold several. The datasets of a downloaded package are keyed package/name.

public static bool IsPackageEntry(CollectionItem item)

Parameters

item CollectionItem

The item.

Returns

bool

QuietUpdates(LibrarySource)

True for a remote S-100 catalogue's or forecast feed's dataset: a newer edition is shown in its summary rather than as a tag, since nearly every tile is reissued each quarter.

public static bool QuietUpdates(LibrarySource source)

Parameters

source LibrarySource

The source that lists the item.

Returns

bool

Tags(LibraryItemTextInput)

What is happening to the item: zero or more sentence-case tags (a download, an update available, loaded, on pan, a package).

public static IReadOnlyList<LibraryTag> Tags(LibraryItemTextInput input)

Parameters

input LibraryItemTextInput

The item.

Returns

IReadOnlyList<LibraryTag>