Class LibraryItemTextInput
- Namespace
- EncDotNet.S100.Collections.Library
- Assembly
- EncDotNet.S100.Collections.dll
One Library item as its row describes it: the item, where it stands, and what the host knows about its download and load. Group rows (an unpacked package, a forecast model's tiles) are the host's own and not described here.
public sealed record LibraryItemTextInput : IEquatable<LibraryItemTextInput>
- Inheritance
-
LibraryItemTextInput
- Implements
- Inherited Members
Constructors
LibraryItemTextInput(CollectionItem, LibrarySource, LibraryAvailability, CollectionItem)
One Library item as its row describes it: the item, where it stands, and what the host knows about its download and load. Group rows (an unpacked package, a forecast model's tiles) are the host's own and not described here.
public LibraryItemTextInput(CollectionItem Item, LibrarySource Source, LibraryAvailability Availability, CollectionItem EffectiveItem)
Parameters
ItemCollectionItemThe indexed item.
SourceLibrarySourceThe source that lists it.
AvailabilityLibraryAvailabilityWhere the data is (from LibraryItemState).
EffectiveItemCollectionItemThe item as it opens now: its downloaded copy, if any.
Properties
Availability
Where the data is (from LibraryItemState).
public LibraryAvailability Availability { get; init; }
Property Value
CollectionName
The name of the collection the source belongs to, for the details.
public string? CollectionName { get; init; }
Property Value
Download
Where the item stands in a download, if anywhere.
public LibraryDownloadItemStatus? Download { get; init; }
Property Value
EffectiveItem
The item as it opens now: its downloaded copy, if any.
public CollectionItem EffectiveItem { get; init; }
Property Value
Item
The indexed item.
public CollectionItem Item { get; init; }
Property Value
LoadState
Whether the host has a copy loaded or deferred; null when it loads nothing.
public Func<CollectionItem, LibraryLoadState>? LoadState { get; init; }
Property Value
LocalRun
The run of the downloaded copy, for a forecast.
public DateTimeOffset? LocalRun { get; init; }
Property Value
Now
The time now, which decides whether a weather run is stale (#1075); the system clock when null.
public DateTimeOffset? Now { get; init; }
Property Value
Source
The source that lists it.
public LibrarySource Source { get; init; }
Property Value
TimeFormat
Whether run times are shown in local time or UTC (#730).
public LibraryTimeFormat TimeFormat { get; init; }
Property Value
TimeZone
The user's time zone, for Local.
public TimeZoneInfo TimeZone { get; init; }