| | | 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 | | |
| | | 11 | | namespace 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> |
| | 2 | 24 | | public PublishSettings() |
| | | 25 | | { |
| | | 26 | | CustomInit(); |
| | 2 | 27 | | } |
| | | 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> |
| | 0 | 40 | | public PublishSettings(System.Guid id, bool isSentimentAnalysisEnabled, bool isSpeechEnabled, bool isSpellChecke |
| | | 41 | | { |
| | 0 | 42 | | Id = id; |
| | 0 | 43 | | IsSentimentAnalysisEnabled = isSentimentAnalysisEnabled; |
| | 0 | 44 | | IsSpeechEnabled = isSpeechEnabled; |
| | 0 | 45 | | IsSpellCheckerEnabled = isSpellCheckerEnabled; |
| | | 46 | | CustomInit(); |
| | 0 | 47 | | } |
| | | 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")] |
| | 3 | 58 | | 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")] |
| | 4 | 65 | | public bool IsSentimentAnalysisEnabled { get; set; } |
| | | 66 | | |
| | | 67 | | /// <summary> |
| | | 68 | | /// Gets or sets enables speech priming in your app |
| | | 69 | | /// </summary> |
| | | 70 | | [JsonProperty(PropertyName = "speech")] |
| | 4 | 71 | | public bool IsSpeechEnabled { get; set; } |
| | | 72 | | |
| | | 73 | | /// <summary> |
| | | 74 | | /// Gets or sets enables spell checking of the utterance. |
| | | 75 | | /// </summary> |
| | | 76 | | [JsonProperty(PropertyName = "spellChecker")] |
| | 4 | 77 | | 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 |
| | 0 | 88 | | } |
| | | 89 | | } |
| | | 90 | | } |