vgquotes/Src/VideoGameQuotes.Api/Search/SearchResult.cs

17 lines
451 B
C#
Raw Normal View History

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