Class LibraryItemQuery
- Namespace
- EncDotNet.S100.Collections.Library
- Assembly
- EncDotNet.S100.Collections.dll
public sealed record LibraryItemQuery : IEquatable<LibraryItemQuery>
- Inheritance
-
LibraryItemQuery
- Implements
- Inherited Members
Constructors
LibraryItemQuery(Guid?, IReadOnlySet<LibraryAvailability>?, string?, string?, GeoBounds?, GeoPosition?)
public LibraryItemQuery(Guid? SourceId = null, IReadOnlySet<LibraryAvailability>? States = null, string? Spec = null, string? Text = null, GeoBounds? Bounds = null, GeoPosition? Point = null)
Parameters
SourceIdGuid?A collection or source id, or null for the whole library.
StatesIReadOnlySet<LibraryAvailability>States to keep, or null (or empty) for all.
SpecstringA product specification to keep, e.g. "S-111", or null.
TextstringText matched against name, title, spec and properties (Matches(string)), or null.
BoundsGeoBounds?Keep items whose bounds intersect this box, or null.
PointGeoPosition?Keep items whose coverage contains this point, most detailed first (HitsAt(IReadOnlyList<LibraryCollection>, GeoPosition)), or null.
Properties
Bounds
Keep items whose bounds intersect this box, or null.
public GeoBounds? Bounds { get; init; }
Property Value
Point
Keep items whose coverage contains this point, most detailed first (HitsAt(IReadOnlyList<LibraryCollection>, GeoPosition)), or null.
public GeoPosition? Point { get; init; }
Property Value
SourceId
A collection or source id, or null for the whole library.
public Guid? SourceId { get; init; }
Property Value
- Guid?
Spec
A product specification to keep, e.g. "S-111", or null.
public string? Spec { get; init; }
Property Value
States
States to keep, or null (or empty) for all.
public IReadOnlySet<LibraryAvailability>? States { get; init; }
Property Value
Text
Text matched against name, title, spec and properties (Matches(string)), or null.
public string? Text { get; init; }
Property Value
ValidAt
Keep only items whose data covers this time (#711, ValidWindow).
public DateTime? ValidAt { get; init; }