< Summary

Class:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models.FeatureInfoObject
Assembly:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\Models\FeatureInfoObject.cs
Covered lines:4
Uncovered lines:8
Coverable lines:12
Total lines:77
Line coverage:33.3% (4 of 12)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Id()-0%100%
get_Name()-100%100%
get_IsActive()-100%100%
get_EnabledForAllModels()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\Models\FeatureInfoObject.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.LUIS.Authoring.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// The base class Features-related response objects inherit from.
 18    /// </summary>
 19    public partial class FeatureInfoObject
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the FeatureInfoObject class.
 23        /// </summary>
 424        public FeatureInfoObject()
 25        {
 26            CustomInit();
 427        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the FeatureInfoObject class.
 31        /// </summary>
 32        /// <param name="id">A six-digit ID used for Features.</param>
 33        /// <param name="name">The name of the Feature.</param>
 34        /// <param name="isActive">Indicates if the feature is enabled.</param>
 35        /// <param name="enabledForAllModels">Indicates if the feature is
 36        /// enabled for all models in the application.</param>
 037        public FeatureInfoObject(int? id = default(int?), string name = default(string), bool? isActive = default(bool?)
 38        {
 039            Id = id;
 040            Name = name;
 041            IsActive = isActive;
 042            EnabledForAllModels = enabledForAllModels;
 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 a six-digit ID used for Features.
 53        /// </summary>
 54        [JsonProperty(PropertyName = "id")]
 055        public int? Id { get; set; }
 56
 57        /// <summary>
 58        /// Gets or sets the name of the Feature.
 59        /// </summary>
 60        [JsonProperty(PropertyName = "name")]
 661        public string Name { get; set; }
 62
 63        /// <summary>
 64        /// Gets or sets indicates if the feature is enabled.
 65        /// </summary>
 66        [JsonProperty(PropertyName = "isActive")]
 567        public bool? IsActive { get; set; }
 68
 69        /// <summary>
 70        /// Gets or sets indicates if the feature is enabled for all models in
 71        /// the application.
 72        /// </summary>
 73        [JsonProperty(PropertyName = "enabledForAllModels")]
 074        public bool? EnabledForAllModels { get; set; }
 75
 76    }
 77}