Table of Contents

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

Item CollectionItem

The indexed item.

Source LibrarySource

The source that lists it.

Availability LibraryAvailability

Where the data is (from LibraryItemState).

EffectiveItem CollectionItem

The 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

LibraryAvailability

CollectionName

The name of the collection the source belongs to, for the details.

public string? CollectionName { get; init; }

Property Value

string

Download

Where the item stands in a download, if anywhere.

public LibraryDownloadItemStatus? Download { get; init; }

Property Value

LibraryDownloadItemStatus

EffectiveItem

The item as it opens now: its downloaded copy, if any.

public CollectionItem EffectiveItem { get; init; }

Property Value

CollectionItem

Item

The indexed item.

public CollectionItem Item { get; init; }

Property Value

CollectionItem

LoadState

Whether the host has a copy loaded or deferred; null when it loads nothing.

public Func<CollectionItem, LibraryLoadState>? LoadState { get; init; }

Property Value

Func<CollectionItem, LibraryLoadState>

LocalRun

The run of the downloaded copy, for a forecast.

public DateTimeOffset? LocalRun { get; init; }

Property Value

DateTimeOffset?

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

DateTimeOffset?

Source

The source that lists it.

public LibrarySource Source { get; init; }

Property Value

LibrarySource

TimeFormat

Whether run times are shown in local time or UTC (#730).

public LibraryTimeFormat TimeFormat { get; init; }

Property Value

LibraryTimeFormat

TimeZone

The user's time zone, for Local.

public TimeZoneInfo TimeZone { get; init; }

Property Value

TimeZoneInfo