-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathSearchRequest.cs
More file actions
44 lines (30 loc) · 1.08 KB
/
SearchRequest.cs
File metadata and controls
44 lines (30 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace Scoop.Requests;
public class SearchRequest
{
[JsonPropertyName("count")]
public bool Count { get; set; }
[JsonPropertyName("search")]
public string Search { get; set; }
[JsonPropertyName("searchMode")]
public string SearchMode { get; set; }
[JsonPropertyName("filter")]
public string Filter { get; set; }
[JsonPropertyName("orderby")]
public string OrderBy { get; set; }
[JsonPropertyName("skip")]
public int Skip { get; set; }
[JsonPropertyName("top")]
public int Top { get; set; } = 20;
[JsonPropertyName("select")]
public string Select { get; set; }
[JsonPropertyName("facets")]
public List<string> Facets { get; set; } = [];
[JsonPropertyName("highlight")]
public string Highlight { get; set; } = string.Empty;
[JsonPropertyName("highlightPreTag")]
public string HighlightPreTag { get; set; } = string.Empty;
[JsonPropertyName("highlightPostTag")]
public string HighlightPostTag { get; set; } = string.Empty;
}