< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Id()-0%100%
get_DetectedLanguages()-100%100%
get_Statistics()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.TextAnalytics\src\Generated\TextAnalytics\Models\LanguageBatchResultItem.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.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    public partial class LanguageBatchResultItem
 19    {
 20        /// <summary>
 21        /// Initializes a new instance of the LanguageBatchResultItem class.
 22        /// </summary>
 423        public LanguageBatchResultItem()
 24        {
 25            CustomInit();
 426        }
 27
 28        /// <summary>
 29        /// Initializes a new instance of the LanguageBatchResultItem class.
 30        /// </summary>
 31        /// <param name="id">Unique, non-empty document identifier.</param>
 32        /// <param name="detectedLanguages">A list of extracted
 33        /// languages.</param>
 34        /// <param name="statistics">(Optional) if showStats=true was specified
 35        /// in the request this field will contain information about the
 36        /// document payload.</param>
 037        public LanguageBatchResultItem(string id = default(string), IList<DetectedLanguage> detectedLanguages = default(
 38        {
 039            Id = id;
 040            DetectedLanguages = detectedLanguages;
 041            Statistics = statistics;
 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 unique, non-empty document identifier.
 52        /// </summary>
 53        [JsonProperty(PropertyName = "id")]
 054        public string Id { get; set; }
 55
 56        /// <summary>
 57        /// Gets or sets a list of extracted languages.
 58        /// </summary>
 59        [JsonProperty(PropertyName = "detectedLanguages")]
 1660        public IList<DetectedLanguage> DetectedLanguages { get; set; }
 61
 62        /// <summary>
 63        /// Gets or sets (Optional) if showStats=true was specified in the
 64        /// request this field will contain information about the document
 65        /// payload.
 66        /// </summary>
 67        [JsonProperty(PropertyName = "statistics")]
 068        public DocumentStatistics Statistics { get; set; }
 69
 70    }
 71}