| | 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 | |
|
| | 11 | | namespace 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> |
| 8 | 26 | | public ImagePrediction() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 8 | 29 | | } |
| | 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> |
| 0 | 39 | | public ImagePrediction(System.Guid id = default(System.Guid), System.Guid project = default(System.Guid), System |
| | 40 | | { |
| 0 | 41 | | Id = id; |
| 0 | 42 | | Project = project; |
| 0 | 43 | | Iteration = iteration; |
| 0 | 44 | | Created = created; |
| 0 | 45 | | Predictions = predictions; |
| | 46 | | CustomInit(); |
| 0 | 47 | | } |
| | 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")] |
| 16 | 58 | | public System.Guid Id { get; private set; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets project Id. |
| | 62 | | /// </summary> |
| | 63 | | [JsonProperty(PropertyName = "project")] |
| 14 | 64 | | public System.Guid Project { get; private set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets iteration Id. |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "iteration")] |
| 14 | 70 | | public System.Guid Iteration { get; private set; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets date this prediction was created. |
| | 74 | | /// </summary> |
| | 75 | | [JsonProperty(PropertyName = "created")] |
| 0 | 76 | | public System.DateTime Created { get; private set; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets list of predictions. |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "predictions")] |
| 42 | 82 | | public IList<Prediction> Predictions { get; private set; } |
| | 83 | |
|
| | 84 | | } |
| | 85 | | } |