Table of Contents

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

List<Category>

CategoriesString

Used for DataGrid rendering.

[IgnoreEquality]
public string CategoriesString { get; }

Property Value

string
See Also

Name

A short name to identify the interface (e.g. "Foo").

public required string Name { get; set; }

Property Value

string

Score

A value between 0 and 100 indicating how good this result matches the query.

public int Score { get; set; }

Property Value

int

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

string

Uri

The URI of the feed.

public required FeedUri Uri { get; set; }

Property Value

FeedUri

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(SearchResult?)

protected bool Equals(SearchResult? other)

Parameters

other SearchResult

Returns

bool

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

Feed

A pseudo-Feed; not a complete feed that can be used to launch an implementation.

ToString()

Creates string representation suitable for console output.

public override string ToString()

Returns

string

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 SearchResult

The left object

right SearchResult

The 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 SearchResult

The left object

right SearchResult

The right object

Returns

bool

true if the objects are not equal; otherwise, false.