< Summary

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.TextAnalytics\src\Generated\TextAnalytics\Models\KeyPhraseBatchResultItem.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 KeyPhraseBatchResultItem
 19    {
 20        /// <summary>
 21        /// Initializes a new instance of the KeyPhraseBatchResultItem class.
 22        /// </summary>
 423        public KeyPhraseBatchResultItem()
 24        {
 25            CustomInit();
 426        }
 27
 28        /// <summary>
 29        /// Initializes a new instance of the KeyPhraseBatchResultItem class.
 30        /// </summary>
 31        /// <param name="id">Unique, non-empty document identifier.</param>
 32        /// <param name="keyPhrases">A list of representative words or phrases.
 33        /// The number of key phrases returned is proportional to the number of
 34        /// words in the input document.</param>
 35        /// <param name="statistics">(Optional) if showStats=true was specified
 36        /// in the request this field will contain information about the
 37        /// document payload.</param>
 038        public KeyPhraseBatchResultItem(string id = default(string), IList<string> keyPhrases = default(IList<string>), 
 39        {
 040            Id = id;
 041            KeyPhrases = keyPhrases;
 042            Statistics = statistics;
 43            CustomInit();
 044        }
 45
 46        /// <summary>
 47        /// An initialization method that performs custom operations like setting defaults
 48        /// </summary>
 49        partial void CustomInit();
 50
 51        /// <summary>
 52        /// Gets or sets unique, non-empty document identifier.
 53        /// </summary>
 54        [JsonProperty(PropertyName = "id")]
 055        public string Id { get; set; }
 56
 57        /// <summary>
 58        /// Gets a list of representative words or phrases. The number of key
 59        /// phrases returned is proportional to the number of words in the
 60        /// input document.
 61        /// </summary>
 62        [JsonProperty(PropertyName = "keyPhrases")]
 1263        public IList<string> KeyPhrases { get; private set; }
 64
 65        /// <summary>
 66        /// Gets or sets (Optional) if showStats=true was specified in the
 67        /// request this field will contain information about the document
 68        /// payload.
 69        /// </summary>
 70        [JsonProperty(PropertyName = "statistics")]
 071        public DocumentStatistics Statistics { get; set; }
 72
 73    }
 74}