< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models.DetectResult
Assembly:Microsoft.Azure.CognitiveServices.Vision.ComputerVision
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\DetectResult.cs
Covered lines:4
Uncovered lines:6
Coverable lines:10
Total lines:67
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_Objects()-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\DetectResult.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.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    /// <summary>
 19    /// Result of a DetectImage call.
 20    /// </summary>
 21    public partial class DetectResult
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the DetectResult class.
 25        /// </summary>
 426        public DetectResult()
 27        {
 28            CustomInit();
 429        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the DetectResult class.
 33        /// </summary>
 34        /// <param name="objects">An array of detected objects.</param>
 35        /// <param name="requestId">Id of the REST API request.</param>
 036        public DetectResult(IList<DetectedObject> objects = default(IList<DetectedObject>), string requestId = default(s
 37        {
 038            Objects = objects;
 039            RequestId = requestId;
 040            Metadata = metadata;
 41            CustomInit();
 042        }
 43
 44        /// <summary>
 45        /// An initialization method that performs custom operations like setting defaults
 46        /// </summary>
 47        partial void CustomInit();
 48
 49        /// <summary>
 50        /// Gets an array of detected objects.
 51        /// </summary>
 52        [JsonProperty(PropertyName = "objects")]
 3453        public IList<DetectedObject> Objects { get; private set; }
 54
 55        /// <summary>
 56        /// Gets or sets id of the REST API request.
 57        /// </summary>
 58        [JsonProperty(PropertyName = "requestId")]
 059        public string RequestId { get; set; }
 60
 61        /// <summary>
 62        /// </summary>
 63        [JsonProperty(PropertyName = "metadata")]
 864        public ImageMetadata Metadata { get; set; }
 65
 66    }
 67}