< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Id()-100%100%
get_Project()-100%100%
get_Iteration()-100%100%
get_Created()-0%100%
get_Predictions()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\ImagePrediction.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    /// <summary>
 19    /// Result of an image prediction request.
 20    /// </summary>
 21    public partial class ImagePrediction
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the ImagePrediction class.
 25        /// </summary>
 826        public ImagePrediction()
 27        {
 28            CustomInit();
 829        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the ImagePrediction class.
 33        /// </summary>
 34        /// <param name="id">Prediction Id.</param>
 35        /// <param name="project">Project Id.</param>
 36        /// <param name="iteration">Iteration Id.</param>
 37        /// <param name="created">Date this prediction was created.</param>
 38        /// <param name="predictions">List of predictions.</param>
 039        public ImagePrediction(System.Guid id = default(System.Guid), System.Guid project = default(System.Guid), System
 40        {
 041            Id = id;
 042            Project = project;
 043            Iteration = iteration;
 044            Created = created;
 045            Predictions = predictions;
 46            CustomInit();
 047        }
 48
 49        /// <summary>
 50        /// An initialization method that performs custom operations like setting defaults
 51        /// </summary>
 52        partial void CustomInit();
 53
 54        /// <summary>
 55        /// Gets prediction Id.
 56        /// </summary>
 57        [JsonProperty(PropertyName = "id")]
 1658        public System.Guid Id { get; private set; }
 59
 60        /// <summary>
 61        /// Gets project Id.
 62        /// </summary>
 63        [JsonProperty(PropertyName = "project")]
 1464        public System.Guid Project { get; private set; }
 65
 66        /// <summary>
 67        /// Gets iteration Id.
 68        /// </summary>
 69        [JsonProperty(PropertyName = "iteration")]
 1470        public System.Guid Iteration { get; private set; }
 71
 72        /// <summary>
 73        /// Gets date this prediction was created.
 74        /// </summary>
 75        [JsonProperty(PropertyName = "created")]
 076        public System.DateTime Created { get; private set; }
 77
 78        /// <summary>
 79        /// Gets list of predictions.
 80        /// </summary>
 81        [JsonProperty(PropertyName = "predictions")]
 4282        public IList<Prediction> Predictions { get; private set; }
 83
 84    }
 85}