< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.Face.Models.GroupResult
Assembly:Microsoft.Azure.CognitiveServices.Vision.Face
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.Face\src\Generated\Models\GroupResult.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:79
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.Face\src\Generated\Models\GroupResult.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.Face.Models
 12{
 13    using Microsoft.Rest;
 14    using Newtonsoft.Json;
 15    using System.Collections;
 16    using System.Collections.Generic;
 17    using System.Linq;
 18
 19    /// <summary>
 20    /// An array of face groups based on face similarity.
 21    /// </summary>
 22    public partial class GroupResult
 23    {
 24        /// <summary>
 25        /// Initializes a new instance of the GroupResult class.
 26        /// </summary>
 027        public GroupResult()
 28        {
 29            CustomInit();
 030        }
 31
 32        /// <summary>
 33        /// Initializes a new instance of the GroupResult class.
 34        /// </summary>
 35        /// <param name="groups">A partition of the original faces based on
 36        /// face similarity. Groups are ranked by number of faces</param>
 37        /// <param name="messyGroup">Face ids array of faces that cannot find
 38        /// any similar faces from original faces.</param>
 039        public GroupResult(IList<IList<System.Guid>> groups, IList<System.Guid> messyGroup = default(IList<System.Guid>)
 40        {
 041            Groups = groups;
 042            MessyGroup = messyGroup;
 43            CustomInit();
 044        }
 45
 46        /// <summary>
 47        /// An initialization method that performs custom operations like setting defaults
 48        /// </summary>
 49        partial void CustomInit();
 50
 51        /// <summary>
 52        /// Gets or sets a partition of the original faces based on face
 53        /// similarity. Groups are ranked by number of faces
 54        /// </summary>
 55        [JsonProperty(PropertyName = "groups")]
 056        public IList<IList<System.Guid>> Groups { get; set; }
 57
 58        /// <summary>
 59        /// Gets or sets face ids array of faces that cannot find any similar
 60        /// faces from original faces.
 61        /// </summary>
 62        [JsonProperty(PropertyName = "messyGroup")]
 063        public IList<System.Guid> MessyGroup { get; set; }
 64
 65        /// <summary>
 66        /// Validate the object.
 67        /// </summary>
 68        /// <exception cref="ValidationException">
 69        /// Thrown if validation fails
 70        /// </exception>
 71        public virtual void Validate()
 72        {
 073            if (Groups == null)
 74            {
 075                throw new ValidationException(ValidationRules.CannotBeNull, "Groups");
 76            }
 077        }
 78    }
 79}