-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ImageRegionCreateResult.cs
115 lines (101 loc) · 3.71 KB
/
ImageRegionCreateResult.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models
{
using Newtonsoft.Json;
using System.Linq;
public partial class ImageRegionCreateResult
{
/// <summary>
/// Initializes a new instance of the ImageRegionCreateResult class.
/// </summary>
public ImageRegionCreateResult()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the ImageRegionCreateResult class.
/// </summary>
/// <param name="tagId">Id of the tag associated with this
/// region.</param>
/// <param name="left">Coordinate of the left boundary.</param>
/// <param name="top">Coordinate of the top boundary.</param>
/// <param name="width">Width.</param>
/// <param name="height">Height.</param>
public ImageRegionCreateResult(System.Guid tagId, double left, double top, double width, double height, System.Guid imageId = default(System.Guid), System.Guid regionId = default(System.Guid), string tagName = default(string), System.DateTime created = default(System.DateTime))
{
ImageId = imageId;
RegionId = regionId;
TagName = tagName;
Created = created;
TagId = tagId;
Left = left;
Top = top;
Width = width;
Height = height;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// </summary>
[JsonProperty(PropertyName = "imageId")]
public System.Guid ImageId { get; private set; }
/// <summary>
/// </summary>
[JsonProperty(PropertyName = "regionId")]
public System.Guid RegionId { get; private set; }
/// <summary>
/// </summary>
[JsonProperty(PropertyName = "tagName")]
public string TagName { get; private set; }
/// <summary>
/// </summary>
[JsonProperty(PropertyName = "created")]
public System.DateTime Created { get; private set; }
/// <summary>
/// Gets or sets id of the tag associated with this region.
/// </summary>
[JsonProperty(PropertyName = "tagId")]
public System.Guid TagId { get; set; }
/// <summary>
/// Gets or sets coordinate of the left boundary.
/// </summary>
[JsonProperty(PropertyName = "left")]
public double Left { get; set; }
/// <summary>
/// Gets or sets coordinate of the top boundary.
/// </summary>
[JsonProperty(PropertyName = "top")]
public double Top { get; set; }
/// <summary>
/// Gets or sets width.
/// </summary>
[JsonProperty(PropertyName = "width")]
public double Width { get; set; }
/// <summary>
/// Gets or sets height.
/// </summary>
[JsonProperty(PropertyName = "height")]
public double Height { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
//Nothing to validate
}
}
}