diff options
| author | Cody Robibero <cody@robibe.ro> | 2022-02-14 16:57:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-14 16:57:00 -0700 |
| commit | 4ef0099598d0d21fe8b808f2c1ab126ede4b7b2f (patch) | |
| tree | 347cfa7b445fbe0456b45606424899e82310e2df /MediaBrowser.Model/Search | |
| parent | 4acab009632251656158e1e9ded68574f64be967 (diff) | |
| parent | 5d28c5547e69b0d40e0bd2792335c9f85dba655b (diff) | |
Merge pull request #7233 from Bond-009/warn60
Diffstat (limited to 'MediaBrowser.Model/Search')
| -rw-r--r-- | MediaBrowser.Model/Search/SearchHintResult.cs | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/MediaBrowser.Model/Search/SearchHintResult.cs b/MediaBrowser.Model/Search/SearchHintResult.cs index 92ba4139e..762a9a078 100644 --- a/MediaBrowser.Model/Search/SearchHintResult.cs +++ b/MediaBrowser.Model/Search/SearchHintResult.cs @@ -1,4 +1,5 @@ -#nullable disable +using System.Collections.Generic; + namespace MediaBrowser.Model.Search { /// <summary> @@ -7,15 +8,26 @@ namespace MediaBrowser.Model.Search public class SearchHintResult { /// <summary> - /// Gets or sets the search hints. + /// Initializes a new instance of the <see cref="SearchHintResult" /> class. + /// </summary> + /// <param name="searchHints">The search hints.</param> + /// <param name="totalRecordCount">The total record count.</param> + public SearchHintResult(IReadOnlyList<SearchHint> searchHints, int totalRecordCount) + { + SearchHints = searchHints; + TotalRecordCount = totalRecordCount; + } + + /// <summary> + /// Gets the search hints. /// </summary> /// <value>The search hints.</value> - public SearchHint[] SearchHints { get; set; } + public IReadOnlyList<SearchHint> SearchHints { get; } /// <summary> - /// Gets or sets the total record count. + /// Gets the total record count. /// </summary> /// <value>The total record count.</value> - public int TotalRecordCount { get; set; } + public int TotalRecordCount { get; } } } |
