< Summary

Class:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models.PublishSettings
Assembly:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\Models\PublishSettings.cs
Covered lines:6
Uncovered lines:7
Coverable lines:13
Total lines:90
Line coverage:46.1% (6 of 13)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Id()-100%100%
get_IsSentimentAnalysisEnabled()-100%100%
get_IsSpeechEnabled()-100%100%
get_IsSpellCheckerEnabled()-100%100%
Validate()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\Models\PublishSettings.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 application publish settings.
 18    /// </summary>
 19    public partial class PublishSettings
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the PublishSettings class.
 23        /// </summary>
 224        public PublishSettings()
 25        {
 26            CustomInit();
 227        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the PublishSettings class.
 31        /// </summary>
 32        /// <param name="id">The application ID.</param>
 33        /// <param name="isSentimentAnalysisEnabled">Setting sentiment analysis
 34        /// as true returns the sentiment of the input utterance along with the
 35        /// response</param>
 36        /// <param name="isSpeechEnabled">Enables speech priming in your
 37        /// app</param>
 38        /// <param name="isSpellCheckerEnabled">Enables spell checking of the
 39        /// utterance.</param>
 040        public PublishSettings(System.Guid id, bool isSentimentAnalysisEnabled, bool isSpeechEnabled, bool isSpellChecke
 41        {
 042            Id = id;
 043            IsSentimentAnalysisEnabled = isSentimentAnalysisEnabled;
 044            IsSpeechEnabled = isSpeechEnabled;
 045            IsSpellCheckerEnabled = isSpellCheckerEnabled;
 46            CustomInit();
 047        }
 48
 49        /// <summary>
 50        /// An initialization method that performs custom operations like setting defaults
 51        /// </summary>
 52        partial void CustomInit();
 53
 54        /// <summary>
 55        /// Gets or sets the application ID.
 56        /// </summary>
 57        [JsonProperty(PropertyName = "id")]
 358        public System.Guid Id { get; set; }
 59
 60        /// <summary>
 61        /// Gets or sets setting sentiment analysis as true returns the
 62        /// sentiment of the input utterance along with the response
 63        /// </summary>
 64        [JsonProperty(PropertyName = "sentimentAnalysis")]
 465        public bool IsSentimentAnalysisEnabled { get; set; }
 66
 67        /// <summary>
 68        /// Gets or sets enables speech priming in your app
 69        /// </summary>
 70        [JsonProperty(PropertyName = "speech")]
 471        public bool IsSpeechEnabled { get; set; }
 72
 73        /// <summary>
 74        /// Gets or sets enables spell checking of the utterance.
 75        /// </summary>
 76        [JsonProperty(PropertyName = "spellChecker")]
 477        public bool IsSpellCheckerEnabled { get; set; }
 78
 79        /// <summary>
 80        /// Validate the object.
 81        /// </summary>
 82        /// <exception cref="Rest.ValidationException">
 83        /// Thrown if validation fails
 84        /// </exception>
 85        public virtual void Validate()
 86        {
 87            //Nothing to validate
 088        }
 89    }
 90}