| | 1 | | // <auto-generated> |
| | 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 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.CognitiveServices.Language.TextAnalytics.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | public partial class DetectedLanguage |
| | 17 | | { |
| | 18 | | /// <summary> |
| | 19 | | /// Initializes a new instance of the DetectedLanguage class. |
| | 20 | | /// </summary> |
| 4 | 21 | | public DetectedLanguage() |
| | 22 | | { |
| | 23 | | CustomInit(); |
| 4 | 24 | | } |
| | 25 | |
|
| | 26 | | /// <summary> |
| | 27 | | /// Initializes a new instance of the DetectedLanguage class. |
| | 28 | | /// </summary> |
| | 29 | | /// <param name="name">Long name of a detected language (e.g. English, |
| | 30 | | /// French).</param> |
| | 31 | | /// <param name="iso6391Name">A two letter representation of the |
| | 32 | | /// detected language according to the ISO 639-1 standard (e.g. en, |
| | 33 | | /// fr).</param> |
| | 34 | | /// <param name="score">A confidence score between 0 and 1. Scores |
| | 35 | | /// close to 1 indicate 100% certainty that the identified language is |
| | 36 | | /// true.</param> |
| 0 | 37 | | public DetectedLanguage(string name = default(string), string iso6391Name = default(string), double? score = def |
| | 38 | | { |
| 0 | 39 | | Name = name; |
| 0 | 40 | | Iso6391Name = iso6391Name; |
| 0 | 41 | | Score = score; |
| | 42 | | CustomInit(); |
| 0 | 43 | | } |
| | 44 | |
|
| | 45 | | /// <summary> |
| | 46 | | /// An initialization method that performs custom operations like setting defaults |
| | 47 | | /// </summary> |
| | 48 | | partial void CustomInit(); |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// Gets or sets long name of a detected language (e.g. English, |
| | 52 | | /// French). |
| | 53 | | /// </summary> |
| | 54 | | [JsonProperty(PropertyName = "name")] |
| 8 | 55 | | public string Name { get; set; } |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets or sets a two letter representation of the detected language |
| | 59 | | /// according to the ISO 639-1 standard (e.g. en, fr). |
| | 60 | | /// </summary> |
| | 61 | | [JsonProperty(PropertyName = "iso6391Name")] |
| 8 | 62 | | public string Iso6391Name { get; set; } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Gets or sets a confidence score between 0 and 1. Scores close to 1 |
| | 66 | | /// indicate 100% certainty that the identified language is true. |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "score")] |
| 8 | 69 | | public double? Score { get; set; } |
| | 70 | |
|
| | 71 | | } |
| | 72 | | } |