< Summary

Class:Microsoft.Azure.CognitiveServices.Language.TextAnalytics.Models.DetectedLanguage
Assembly:Microsoft.Azure.CognitiveServices.Language.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.TextAnalytics\src\Generated\TextAnalytics\Models\DetectedLanguage.cs
Covered lines:5
Uncovered lines:5
Coverable lines:10
Total lines:72
Line coverage:50% (5 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Name()-100%100%
get_Iso6391Name()-100%100%
get_Score()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.TextAnalytics\src\Generated\TextAnalytics\Models\DetectedLanguage.cs

#LineLine coverage
 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
 11namespace 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>
 421        public DetectedLanguage()
 22        {
 23            CustomInit();
 424        }
 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>
 037        public DetectedLanguage(string name = default(string), string iso6391Name = default(string), double? score = def
 38        {
 039            Name = name;
 040            Iso6391Name = iso6391Name;
 041            Score = score;
 42            CustomInit();
 043        }
 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")]
 855        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")]
 862        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")]
 869        public double? Score { get; set; }
 70
 71    }
 72}