< Summary

Class:Microsoft.Azure.CognitiveServices.Language.TextAnalytics.Models.EntitiesBatchResultItem
Assembly:Microsoft.Azure.CognitiveServices.Language.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.TextAnalytics\src\Generated\TextAnalytics\Models\EntitiesBatchResultItem.cs
Covered lines:3
Uncovered lines:7
Coverable lines:10
Total lines:70
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_Entities()-100%100%
get_Statistics()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.TextAnalytics\src\Generated\TextAnalytics\Models\EntitiesBatchResultItem.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 EntitiesBatchResultItem
 19    {
 20        /// <summary>
 21        /// Initializes a new instance of the EntitiesBatchResultItem class.
 22        /// </summary>
 423        public EntitiesBatchResultItem()
 24        {
 25            CustomInit();
 426        }
 27
 28        /// <summary>
 29        /// Initializes a new instance of the EntitiesBatchResultItem class.
 30        /// </summary>
 31        /// <param name="id">Unique, non-empty document identifier.</param>
 32        /// <param name="entities">Recognized entities in the document.</param>
 33        /// <param name="statistics">(Optional) if showStats=true was specified
 34        /// in the request this field will contain information about the
 35        /// document payload.</param>
 036        public EntitiesBatchResultItem(string id = default(string), IList<EntityRecord> entities = default(IList<EntityR
 37        {
 038            Id = id;
 039            Entities = entities;
 040            Statistics = statistics;
 41            CustomInit();
 042        }
 43
 44        /// <summary>
 45        /// An initialization method that performs custom operations like setting defaults
 46        /// </summary>
 47        partial void CustomInit();
 48
 49        /// <summary>
 50        /// Gets or sets unique, non-empty document identifier.
 51        /// </summary>
 52        [JsonProperty(PropertyName = "id")]
 053        public string Id { get; set; }
 54
 55        /// <summary>
 56        /// Gets recognized entities in the document.
 57        /// </summary>
 58        [JsonProperty(PropertyName = "entities")]
 2059        public IList<EntityRecord> Entities { get; private set; }
 60
 61        /// <summary>
 62        /// Gets or sets (Optional) if showStats=true was specified in the
 63        /// request this field will contain information about the document
 64        /// payload.
 65        /// </summary>
 66        [JsonProperty(PropertyName = "statistics")]
 067        public DocumentStatistics Statistics { get; set; }
 68
 69    }
 70}