< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-100%100%
get_Language()-100%100%
get_Id()-100%100%
get_Text()-100%100%

File(s)

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

#LineLine coverage
 1//
 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
 7namespace Microsoft.Azure.CognitiveServices.Language.TextAnalytics.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Linq;
 11
 12    public partial class MultiLanguageInput
 13    {
 14        /// <summary>
 15        /// Initializes a new instance of the MultiLanguageInput class.
 16        /// </summary>
 617        public MultiLanguageInput()
 18        {
 19            CustomInit();
 620        }
 21
 22        /// <summary>
 23        /// Initializes a new instance of the MultiLanguageInput class.
 24        /// </summary>
 25        /// <param name="language">This is the 2 letter ISO 639-1
 26        /// representation of a language. For example, use "en" for English;
 27        /// "es" for Spanish etc.,</param>
 28        /// <param name="id">Unique, non-empty document identifier.</param>
 629        public MultiLanguageInput(string id = default, string text = default, string language = default)
 30        {
 631            Language = language;
 632            Id = id;
 633            Text = text;
 34            CustomInit();
 635        }
 36
 37        /// <summary>
 38        /// An initialization method that performs custom operations like setting defaults
 39        /// </summary>
 40        partial void CustomInit();
 41
 42        /// <summary>
 43        /// Gets or sets this is the 2 letter ISO 639-1 representation of a
 44        /// language. For example, use "en" for English; "es" for Spanish etc.,
 45        /// </summary>
 46        [JsonProperty(PropertyName = "language", Order = 3)]
 2447        public string Language { get; set; }
 48
 49        /// <summary>
 50        /// Gets or sets unique, non-empty document identifier.
 51        /// </summary>
 52        [JsonProperty(PropertyName = "id", Order = 1)]
 2453        public string Id { get; set; }
 54
 55        /// <summary>
 56        /// </summary>
 57        [JsonProperty(PropertyName = "text", Order = 2)]
 2458        public string Text { get; set; }
 59
 60    }
 61}