17 lines
451 B
C#
17 lines
451 B
C#
namespace VideoGameQuotes.Api.Search {
|
|
/// <summary>
|
|
/// Represents a search result
|
|
/// </summary>
|
|
public class SearchResult<T> {
|
|
/// <summary>
|
|
/// A value (between 0 and 1, the higher the better) representing how good
|
|
/// the match is between the search query and the value
|
|
/// </summary>
|
|
public double Score { get; set; }
|
|
|
|
/// <summary>
|
|
/// The matched quote
|
|
/// </summary>
|
|
public T Entity { get; set; }
|
|
}
|
|
} |