< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models.ImageDescription
Assembly:Microsoft.Azure.CognitiveServices.Vision.ComputerVision
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\ImageDescription.cs
Covered lines:4
Uncovered lines:8
Coverable lines:12
Total lines:80
Line coverage:33.3% (4 of 12)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\ImageDescription.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 Microsoft.Rest;
 14    using Microsoft.Rest.Serialization;
 15    using Newtonsoft.Json;
 16    using System.Collections;
 17    using System.Collections.Generic;
 18    using System.Linq;
 19
 20    /// <summary>
 21    /// A collection of content tags, along with a list of captions sorted by
 22    /// confidence level, and image metadata.
 23    /// </summary>
 24    [Rest.Serialization.JsonTransformation]
 25    public partial class ImageDescription
 26    {
 27        /// <summary>
 28        /// Initializes a new instance of the ImageDescription class.
 29        /// </summary>
 630        public ImageDescription()
 31        {
 32            CustomInit();
 633        }
 34
 35        /// <summary>
 36        /// Initializes a new instance of the ImageDescription class.
 37        /// </summary>
 38        /// <param name="tags">A collection of image tags.</param>
 39        /// <param name="captions">A list of captions, sorted by confidence
 40        /// level.</param>
 41        /// <param name="requestId">Id of the REST API request.</param>
 042        public ImageDescription(IList<string> tags = default(IList<string>), IList<ImageCaption> captions = default(ILis
 43        {
 044            Tags = tags;
 045            Captions = captions;
 046            RequestId = requestId;
 047            Metadata = metadata;
 48            CustomInit();
 049        }
 50
 51        /// <summary>
 52        /// An initialization method that performs custom operations like setting defaults
 53        /// </summary>
 54        partial void CustomInit();
 55
 56        /// <summary>
 57        /// Gets or sets a collection of image tags.
 58        /// </summary>
 59        [JsonProperty(PropertyName = "description.tags")]
 1260        public IList<string> Tags { get; set; }
 61
 62        /// <summary>
 63        /// Gets or sets a list of captions, sorted by confidence level.
 64        /// </summary>
 65        [JsonProperty(PropertyName = "description.captions")]
 2866        public IList<ImageCaption> Captions { get; set; }
 67
 68        /// <summary>
 69        /// Gets or sets id of the REST API request.
 70        /// </summary>
 71        [JsonProperty(PropertyName = "requestId")]
 072        public string RequestId { get; set; }
 73
 74        /// <summary>
 75        /// </summary>
 76        [JsonProperty(PropertyName = "metadata")]
 077        public ImageMetadata Metadata { get; set; }
 78
 79    }
 80}