diff options
| author | Bond_009 <bond.009@outlook.com> | 2022-01-22 15:40:05 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2022-02-14 14:46:04 +0100 |
| commit | 1c14c86b20f695f7344f72d7c1c67ea4334f81f4 (patch) | |
| tree | 3dc36495db05ba6e90cb518e5410644e75635fd5 /MediaBrowser.Model/Search | |
| parent | 68e7072698dafe7df1bd272df331c2ccc8134391 (diff) | |
Fix some warnings
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 92ba4139ea..762a9a0787 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; } } } |
