Class SearchResult
- Namespace
- ZeroInstall.Store.Feeds
- Assembly
- ZeroInstall.Store.dll
A single result of a feed search.
public class SearchResult : IEquatable<SearchResult>
- Inheritance
-
objectSearchResult
- Implements
Constructors
SearchResult()
public SearchResult()
Properties
Categories
A list of well-known categories the applications fits into.
[Browsable(false)]
public List<Category> Categories { get; }
Property Value
CategoriesString
Used for DataGrid rendering.
public string CategoriesString { get; }
Property Value
- See Also
Name
A short name to identify the interface (e.g. "Foo").
public required string Name { get; set; }
Property Value
Score
A value between 0 and 100 indicating how good this result matches the query.
public int Score { get; set; }
Property Value
Summary
Short one-line description for different languages; the first word should not be upper-case unless it is a proper noun (e.g. "cures all ills").
public string? Summary { get; set; }
Property Value
Uri
The URI of the feed.
public required FeedUri Uri { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(SearchResult?)
protected bool Equals(SearchResult? other)
Parameters
otherSearchResult
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToPseudoFeed()
Generates a pseudo-Feed using the information from this result.
public Feed ToPseudoFeed()
Returns
ToString()
Creates string representation suitable for console output.
public override string ToString()
Returns
Operators
operator ==(SearchResult?, SearchResult?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(SearchResult? left, SearchResult? right)
Parameters
leftSearchResultThe left object
rightSearchResultThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(SearchResult?, SearchResult?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(SearchResult? left, SearchResult? right)
Parameters
leftSearchResultThe left object
rightSearchResultThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.