aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/Api/SearchResultItem.cs
blob: ac40281f0a36397800b84c3778cc21f7fb715f04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace Timeline.Services.Api
{
    public class SearchResultItem<TItem>
    {
        public SearchResultItem(TItem item, int score)
        {
            Item = item;
            Score = score;
        }

        public TItem Item { get; set; } = default!;

        /// <summary>
        /// Bigger is better.
        /// </summary>
        public int Score { get; set; }
    }
}