| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | // <auto-generated/> |
| | | 5 | | |
| | | 6 | | #nullable disable |
| | | 7 | | |
| | | 8 | | using System; |
| | | 9 | | using System.Collections.Generic; |
| | | 10 | | using System.Linq; |
| | | 11 | | |
| | | 12 | | namespace Azure.Search.Documents.Models |
| | | 13 | | { |
| | | 14 | | /// <summary> Response containing suggestion query results from an index. </summary> |
| | | 15 | | internal partial class SuggestDocumentsResult |
| | | 16 | | { |
| | | 17 | | /// <summary> Initializes a new instance of SuggestDocumentsResult. </summary> |
| | | 18 | | /// <param name="results"> The sequence of results returned by the query. </param> |
| | | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="results"/> is null. </exception> |
| | 0 | 20 | | internal SuggestDocumentsResult(IEnumerable<SuggestResult> results) |
| | | 21 | | { |
| | 0 | 22 | | if (results == null) |
| | | 23 | | { |
| | 0 | 24 | | throw new ArgumentNullException(nameof(results)); |
| | | 25 | | } |
| | | 26 | | |
| | 0 | 27 | | Results = results.ToList(); |
| | 0 | 28 | | } |
| | | 29 | | |
| | | 30 | | /// <summary> Initializes a new instance of SuggestDocumentsResult. </summary> |
| | | 31 | | /// <param name="results"> The sequence of results returned by the query. </param> |
| | | 32 | | /// <param name="coverage"> A value indicating the percentage of the index that was included in the query, or nu |
| | 0 | 33 | | internal SuggestDocumentsResult(IReadOnlyList<SuggestResult> results, double? coverage) |
| | | 34 | | { |
| | 0 | 35 | | Results = results; |
| | 0 | 36 | | Coverage = coverage; |
| | 0 | 37 | | } |
| | | 38 | | |
| | | 39 | | /// <summary> The sequence of results returned by the query. </summary> |
| | 0 | 40 | | public IReadOnlyList<SuggestResult> Results { get; } |
| | | 41 | | /// <summary> A value indicating the percentage of the index that was included in the query, or null if minimumC |
| | 0 | 42 | | public double? Coverage { get; } |
| | | 43 | | } |
| | | 44 | | } |