| | | 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 | | using System.Linq; |
| | | 11 | | |
| | | 12 | | public partial class MultiLanguageInput |
| | | 13 | | { |
| | | 14 | | /// <summary> |
| | | 15 | | /// Initializes a new instance of the MultiLanguageInput class. |
| | | 16 | | /// </summary> |
| | 6 | 17 | | public MultiLanguageInput() |
| | | 18 | | { |
| | | 19 | | CustomInit(); |
| | 6 | 20 | | } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Initializes a new instance of the MultiLanguageInput class. |
| | | 24 | | /// </summary> |
| | | 25 | | /// <param name="language">This is the 2 letter ISO 639-1 |
| | | 26 | | /// representation of a language. For example, use "en" for English; |
| | | 27 | | /// "es" for Spanish etc.,</param> |
| | | 28 | | /// <param name="id">Unique, non-empty document identifier.</param> |
| | 6 | 29 | | public MultiLanguageInput(string id = default, string text = default, string language = default) |
| | | 30 | | { |
| | 6 | 31 | | Language = language; |
| | 6 | 32 | | Id = id; |
| | 6 | 33 | | Text = text; |
| | | 34 | | CustomInit(); |
| | 6 | 35 | | } |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// An initialization method that performs custom operations like setting defaults |
| | | 39 | | /// </summary> |
| | | 40 | | partial void CustomInit(); |
| | | 41 | | |
| | | 42 | | /// <summary> |
| | | 43 | | /// Gets or sets this is the 2 letter ISO 639-1 representation of a |
| | | 44 | | /// language. For example, use "en" for English; "es" for Spanish etc., |
| | | 45 | | /// </summary> |
| | | 46 | | [JsonProperty(PropertyName = "language", Order = 3)] |
| | 24 | 47 | | public string Language { get; set; } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// Gets or sets unique, non-empty document identifier. |
| | | 51 | | /// </summary> |
| | | 52 | | [JsonProperty(PropertyName = "id", Order = 1)] |
| | 24 | 53 | | public string Id { get; set; } |
| | | 54 | | |
| | | 55 | | /// <summary> |
| | | 56 | | /// </summary> |
| | | 57 | | [JsonProperty(PropertyName = "text", Order = 2)] |
| | 24 | 58 | | public string Text { get; set; } |
| | | 59 | | |
| | | 60 | | } |
| | | 61 | | } |