Class SearchResult
- Namespace
- ZeroInstall.Store.Feeds
- Assembly
- ZeroInstall.Store.dll
A single result of a feed search.
[Serializable]
[Equatable]
public class SearchResult : IEquatable<SearchResult>
- Inheritance
-
SearchResult
- Implements
- Inherited Members
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.
[IgnoreEquality]
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?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Equals(SearchResult?)
protected bool Equals(SearchResult? other)
Parameters
other
SearchResult
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
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
left
SearchResultThe left object
right
SearchResultThe 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
left
SearchResultThe left object
right
SearchResultThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.