< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models.DomainModelResults
Assembly:Microsoft.Azure.CognitiveServices.Vision.ComputerVision
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\DomainModelResults.cs
Covered lines:4
Uncovered lines:6
Coverable lines:10
Total lines:66
Line coverage:40% (4 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Result()-100%100%
get_RequestId()-0%100%
get_Metadata()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\DomainModelResults.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.Vision.ComputerVision.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// Result of image analysis using a specific domain model including
 18    /// additional metadata.
 19    /// </summary>
 20    public partial class DomainModelResults
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the DomainModelResults class.
 24        /// </summary>
 625        public DomainModelResults()
 26        {
 27            CustomInit();
 628        }
 29
 30        /// <summary>
 31        /// Initializes a new instance of the DomainModelResults class.
 32        /// </summary>
 33        /// <param name="result">Model-specific response.</param>
 34        /// <param name="requestId">Id of the REST API request.</param>
 035        public DomainModelResults(object result = default(object), string requestId = default(string), ImageMetadata met
 36        {
 037            Result = result;
 038            RequestId = requestId;
 039            Metadata = metadata;
 40            CustomInit();
 041        }
 42
 43        /// <summary>
 44        /// An initialization method that performs custom operations like setting defaults
 45        /// </summary>
 46        partial void CustomInit();
 47
 48        /// <summary>
 49        /// Gets or sets model-specific response.
 50        /// </summary>
 51        [JsonProperty(PropertyName = "result")]
 1852        public object Result { get; set; }
 53
 54        /// <summary>
 55        /// Gets or sets id of the REST API request.
 56        /// </summary>
 57        [JsonProperty(PropertyName = "requestId")]
 058        public string RequestId { get; set; }
 59
 60        /// <summary>
 61        /// </summary>
 62        [JsonProperty(PropertyName = "metadata")]
 1263        public ImageMetadata Metadata { get; set; }
 64
 65    }
 66}