vgquotes/Src/VideoGameQuotes.Api/Search/SearchResult.cs
2011-02-25 23:36:21 +00:00

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; }
}
}