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
inputLibraryItemTextInputThe item.
Returns
DownloadTags(LibraryDownloadItemStatus?)
"Queued" or "Failed ยท retry" for an item in a download, else nothing.
public static IEnumerable<LibraryTag> DownloadTags(LibraryDownloadItemStatus? download)
Parameters
downloadLibraryDownloadItemStatusWhere the item stands in a download.
Returns
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
loadStatesIEnumerable<LibraryLoadState?>The load state of each of the run's files.
availabilityLibraryAvailabilityThe run's availability.
Returns
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
itemCollectionItemThe item.
sourceLibrarySourceThe source that lists it.
Returns
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
itemCollectionItemThe item.
Returns
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
sourceLibrarySourceThe source that lists the item.
Returns
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
inputLibraryItemTextInputThe item.