| | 1 | | // |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | |
|
| | 7 | | namespace Microsoft.Azure.CognitiveServices.Language.TextAnalytics.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | |
|
| | 11 | | public partial class LanguageInput |
| | 12 | | { |
| | 13 | | /// <summary> |
| | 14 | | /// Initializes a new instance of the LanguageInput class. |
| | 15 | | /// </summary> |
| 0 | 16 | | public LanguageInput() |
| | 17 | | { |
| | 18 | | CustomInit(); |
| 0 | 19 | | } |
| | 20 | |
|
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the LanguageInput class. |
| | 23 | | /// </summary> |
| | 24 | | /// <param name="id">Unique, non-empty document identifier.</param> |
| 4 | 25 | | public LanguageInput(string id = default, string text = default, string countryHint = default) |
| | 26 | | { |
| 4 | 27 | | CountryHint = countryHint; |
| 4 | 28 | | Id = id; |
| 4 | 29 | | Text = text; |
| | 30 | | CustomInit(); |
| 4 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// An initialization method that performs custom operations like setting defaults |
| | 35 | | /// </summary> |
| | 36 | | partial void CustomInit(); |
| | 37 | |
|
| | 38 | | /// <summary> |
| | 39 | | /// </summary> |
| | 40 | | [JsonProperty(PropertyName = "countryHint", Order = 3)] |
| 8 | 41 | | public string CountryHint { get; set; } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// Gets or sets unique, non-empty document identifier. |
| | 45 | | /// </summary> |
| | 46 | | [JsonProperty(PropertyName = "id", Order = 1)] |
| 8 | 47 | | public string Id { get; set; } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// </summary> |
| | 51 | | [JsonProperty(PropertyName = "text", Order = 2)] |
| 8 | 52 | | public string Text { get; set; } |
| | 53 | |
|
| | 54 | | } |
| | 55 | | } |