< Summary

Class:Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.PromptDTOQna
Assembly:Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Knowledge.QnAMaker\src\Generated\Models\PromptDTOQna.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:65
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
Validate()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Knowledge.QnAMaker\src\Generated\Models\PromptDTOQna.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.Knowledge.QnAMaker.Models
 12{
 13    using System.Collections;
 14    using System.Collections.Generic;
 15    using System.Linq;
 16
 17    /// <summary>
 18    /// QnADTO - Either QnaId or QnADTO needs to be present in a PromptDTO
 19    /// object
 20    /// </summary>
 21    public partial class PromptDTOQna : QnADTO
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the PromptDTOQna class.
 25        /// </summary>
 026        public PromptDTOQna()
 27        {
 28            CustomInit();
 029        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the PromptDTOQna class.
 33        /// </summary>
 34        /// <param name="answer">Answer text</param>
 35        /// <param name="questions">List of questions associated with the
 36        /// answer.</param>
 37        /// <param name="id">Unique id for the Q-A.</param>
 38        /// <param name="source">Source from which Q-A was indexed. eg.
 39        /// https://docs.microsoft.com/en-us/azure/cognitive-services/QnAMaker/FAQs</param>
 40        /// <param name="metadata">List of metadata associated with the
 41        /// answer.</param>
 42        /// <param name="context">Context of a QnA</param>
 43        public PromptDTOQna(string answer, IList<string> questions, int? id = default(int?), string source = default(str
 044            : base(answer, questions, id, source, metadata, context)
 45        {
 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        /// Validate the object.
 56        /// </summary>
 57        /// <exception cref="Rest.ValidationException">
 58        /// Thrown if validation fails
 59        /// </exception>
 60        public override void Validate()
 61        {
 062            base.Validate();
 063        }
 64    }
 65}

Methods/Properties

.ctor()
.ctor(...)
Validate()