2011-02-17 05:30:31 +00:00
|
|
|
|
namespace VideoGameQuotes.Api.Search {
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a search result
|
|
|
|
|
/// </summary>
|
2011-02-25 23:36:21 +00:00
|
|
|
|
public class SearchResult<T> {
|
2011-02-17 05:30:31 +00:00
|
|
|
|
/// <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>
|
2011-02-25 23:36:21 +00:00
|
|
|
|
public T Entity { get; set; }
|
2011-02-17 05:30:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|