< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models.ColorInfo
Assembly:Microsoft.Azure.CognitiveServices.Vision.ComputerVision
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\ColorInfo.cs
Covered lines:5
Uncovered lines:9
Coverable lines:14
Total lines:89
Line coverage:35.7% (5 of 14)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_DominantColorForeground()-100%100%
get_DominantColorBackground()-100%100%
get_DominantColors()-100%100%
get_AccentColor()-0%100%
get_IsBWImg()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\ColorInfo.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    /// An object providing additional metadata describing color attributes.
 20    /// </summary>
 21    public partial class ColorInfo
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the ColorInfo class.
 25        /// </summary>
 426        public ColorInfo()
 27        {
 28            CustomInit();
 429        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the ColorInfo class.
 33        /// </summary>
 34        /// <param name="dominantColorForeground">Possible dominant foreground
 35        /// color.</param>
 36        /// <param name="dominantColorBackground">Possible dominant background
 37        /// color.</param>
 38        /// <param name="dominantColors">An array of possible dominant
 39        /// colors.</param>
 40        /// <param name="accentColor">Possible accent color.</param>
 41        /// <param name="isBWImg">A value indicating if the image is black and
 42        /// white.</param>
 043        public ColorInfo(string dominantColorForeground = default(string), string dominantColorBackground = default(stri
 44        {
 045            DominantColorForeground = dominantColorForeground;
 046            DominantColorBackground = dominantColorBackground;
 047            DominantColors = dominantColors;
 048            AccentColor = accentColor;
 049            IsBWImg = isBWImg;
 50            CustomInit();
 051        }
 52
 53        /// <summary>
 54        /// An initialization method that performs custom operations like setting defaults
 55        /// </summary>
 56        partial void CustomInit();
 57
 58        /// <summary>
 59        /// Gets or sets possible dominant foreground color.
 60        /// </summary>
 61        [JsonProperty(PropertyName = "dominantColorForeground")]
 862        public string DominantColorForeground { get; set; }
 63
 64        /// <summary>
 65        /// Gets or sets possible dominant background color.
 66        /// </summary>
 67        [JsonProperty(PropertyName = "dominantColorBackground")]
 868        public string DominantColorBackground { get; set; }
 69
 70        /// <summary>
 71        /// Gets or sets an array of possible dominant colors.
 72        /// </summary>
 73        [JsonProperty(PropertyName = "dominantColors")]
 874        public IList<string> DominantColors { get; set; }
 75
 76        /// <summary>
 77        /// Gets or sets possible accent color.
 78        /// </summary>
 79        [JsonProperty(PropertyName = "accentColor")]
 080        public string AccentColor { get; set; }
 81
 82        /// <summary>
 83        /// Gets or sets a value indicating if the image is black and white.
 84        /// </summary>
 85        [JsonProperty(PropertyName = "isBWImg")]
 086        public bool IsBWImg { get; set; }
 87
 88    }
 89}