Class SecomFilter
- Namespace
- EncDotNet.S100.Collections
- Assembly
- EncDotNet.S100.Collections.dll
Selects objects from a SECOM service: by product specification (matched on this side, since services spell product types differently) and, optionally, by an area the service filters on. With nothing selected, every object matches.
public sealed record SecomFilter : IEquatable<SecomFilter>
- Inheritance
-
SecomFilter
- Implements
- Inherited Members
Properties
All
A filter that matches every object.
public static SecomFilter All { get; }
Property Value
GeometryWkt
A WKT polygon the objects must intersect, sent to the service as the
geometry query parameter; null for no area.
public string? GeometryWkt { get; init; }
Property Value
IsUnscoped
True when no product is selected.
public bool IsUnscoped { get; }
Property Value
ProductSpecs
Product specifications (e.g. S-124), matched case-insensitively.
public IReadOnlyList<string> ProductSpecs { get; init; }
Property Value
Methods
Equals(SecomFilter?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SecomFilter? other)
Parameters
otherSecomFilterAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Matches(CollectionItem)
Returns true when item is one of the selected products.
public bool Matches(CollectionItem item)
Parameters
itemCollectionItem
Returns
ToCanonicalString()
A canonical text form, stable across list order and case, for fingerprints.
public string ToCanonicalString()