| | 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 | |
|
| | 10 | | namespace Azure.Search.Documents.Models |
| | 11 | | { |
| | 12 | | /// <summary> The result of Autocomplete requests. </summary> |
| | 13 | | public partial class AutocompleteItem |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of AutocompleteItem. </summary> |
| | 16 | | /// <param name="text"> The completed term. </param> |
| | 17 | | /// <param name="queryPlusText"> The query along with the completed term. </param> |
| | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="text"/> or <paramref name="queryPlusText"/> is null |
| 88 | 19 | | internal AutocompleteItem(string text, string queryPlusText) |
| | 20 | | { |
| 88 | 21 | | if (text == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(text)); |
| | 24 | | } |
| 88 | 25 | | if (queryPlusText == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(queryPlusText)); |
| | 28 | | } |
| | 29 | |
|
| 88 | 30 | | Text = text; |
| 88 | 31 | | QueryPlusText = queryPlusText; |
| 88 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> The completed term. </summary> |
| 88 | 35 | | public string Text { get; } |
| | 36 | | /// <summary> The query along with the completed term. </summary> |
| 88 | 37 | | public string QueryPlusText { get; } |
| | 38 | | } |
| | 39 | | } |