< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ImageCreateSummary
Assembly:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\ImageCreateSummary.cs
Covered lines:4
Uncovered lines:4
Coverable lines:8
Total lines:60
Line coverage:50% (4 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_IsBatchSuccessful()-100%100%
get_Images()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\ImageCreateSummary.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.CustomVision.Training.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    public partial class ImageCreateSummary
 19    {
 20        /// <summary>
 21        /// Initializes a new instance of the ImageCreateSummary class.
 22        /// </summary>
 1623        public ImageCreateSummary()
 24        {
 25            CustomInit();
 1626        }
 27
 28        /// <summary>
 29        /// Initializes a new instance of the ImageCreateSummary class.
 30        /// </summary>
 31        /// <param name="isBatchSuccessful">True if all of the images in the
 32        /// batch were created successfully, otherwise false.</param>
 33        /// <param name="images">List of the image creation results.</param>
 034        public ImageCreateSummary(bool isBatchSuccessful = default(bool), IList<ImageCreateResult> images = default(ILis
 35        {
 036            IsBatchSuccessful = isBatchSuccessful;
 037            Images = images;
 38            CustomInit();
 039        }
 40
 41        /// <summary>
 42        /// An initialization method that performs custom operations like setting defaults
 43        /// </summary>
 44        partial void CustomInit();
 45
 46        /// <summary>
 47        /// Gets true if all of the images in the batch were created
 48        /// successfully, otherwise false.
 49        /// </summary>
 50        [JsonProperty(PropertyName = "isBatchSuccessful")]
 3051        public bool IsBatchSuccessful { get; private set; }
 52
 53        /// <summary>
 54        /// Gets list of the image creation results.
 55        /// </summary>
 56        [JsonProperty(PropertyName = "images")]
 10657        public IList<ImageCreateResult> Images { get; private set; }
 58
 59    }
 60}