feat: work on performing searches

This commit is contained in:
Stevan Freeborn
2024-08-31 21:08:33 -05:00
parent dc4d4ff1d3
commit 78748cc104
8 changed files with 68 additions and 4 deletions
@@ -2,5 +2,20 @@ namespace SanctionsSearch.Worker.Models;
class SearchResult
{
// TODO: Add properties to represent the search result
public int SearchRequestId { get; init; }
public List<Hit> Hits { get; init; } = [];
public SearchResult(int searchRequestId, List<Hit> hits)
{
SearchRequestId = searchRequestId;
Hits = hits;
}
}
class Hit
{
public string Name { get; init; } = string.Empty;
public string Address { get; init; } = string.Empty;
public string Type { get; init; } = string.Empty;
public List<string> Programs { get; init; } = [];
}