| | 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.EventGrid.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// The geofence geometry. |
| | 18 | | /// </summary> |
| | 19 | | public partial class MapsGeofenceGeometry |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the MapsGeofenceGeometry class. |
| | 23 | | /// </summary> |
| 3 | 24 | | public MapsGeofenceGeometry() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 3 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the MapsGeofenceGeometry class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="deviceId">ID of the device.</param> |
| | 33 | | /// <param name="distance">Distance from the coordinate to the closest |
| | 34 | | /// border of the geofence. Positive means the coordinate is outside of |
| | 35 | | /// the geofence. If the coordinate is outside of the geofence, but |
| | 36 | | /// more than the value of searchBuffer away from the closest geofence |
| | 37 | | /// border, then the value is 999. Negative means the coordinate is |
| | 38 | | /// inside of the geofence. If the coordinate is inside the polygon, |
| | 39 | | /// but more than the value of searchBuffer away from the closest |
| | 40 | | /// geofencing border,then the value is -999. A value of 999 means that |
| | 41 | | /// there is great confidence the coordinate is well outside the |
| | 42 | | /// geofence. A value of -999 means that there is great confidence the |
| | 43 | | /// coordinate is well within the geofence.</param> |
| | 44 | | /// <param name="geometryId">The unique ID for the geofence |
| | 45 | | /// geometry.</param> |
| | 46 | | /// <param name="nearestLat">Latitude of the nearest point of the |
| | 47 | | /// geometry.</param> |
| | 48 | | /// <param name="nearestLon">Longitude of the nearest point of the |
| | 49 | | /// geometry.</param> |
| | 50 | | /// <param name="udId">The unique id returned from user upload service |
| | 51 | | /// when uploading a geofence. Will not be included in geofencing post |
| | 52 | | /// API.</param> |
| 0 | 53 | | public MapsGeofenceGeometry(string deviceId = default(string), double? distance = default(double?), string geome |
| | 54 | | { |
| 0 | 55 | | DeviceId = deviceId; |
| 0 | 56 | | Distance = distance; |
| 0 | 57 | | GeometryId = geometryId; |
| 0 | 58 | | NearestLat = nearestLat; |
| 0 | 59 | | NearestLon = nearestLon; |
| 0 | 60 | | UdId = udId; |
| | 61 | | CustomInit(); |
| 0 | 62 | | } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// An initialization method that performs custom operations like setting defaults |
| | 66 | | /// </summary> |
| | 67 | | partial void CustomInit(); |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets ID of the device. |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "deviceId")] |
| 0 | 73 | | public string DeviceId { get; set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets or sets distance from the coordinate to the closest border of |
| | 77 | | /// the geofence. Positive means the coordinate is outside of the |
| | 78 | | /// geofence. If the coordinate is outside of the geofence, but more |
| | 79 | | /// than the value of searchBuffer away from the closest geofence |
| | 80 | | /// border, then the value is 999. Negative means the coordinate is |
| | 81 | | /// inside of the geofence. If the coordinate is inside the polygon, |
| | 82 | | /// but more than the value of searchBuffer away from the closest |
| | 83 | | /// geofencing border,then the value is -999. A value of 999 means that |
| | 84 | | /// there is great confidence the coordinate is well outside the |
| | 85 | | /// geofence. A value of -999 means that there is great confidence the |
| | 86 | | /// coordinate is well within the geofence. |
| | 87 | | /// </summary> |
| | 88 | | [JsonProperty(PropertyName = "distance")] |
| 6 | 89 | | public double? Distance { get; set; } |
| | 90 | |
|
| | 91 | | /// <summary> |
| | 92 | | /// Gets or sets the unique ID for the geofence geometry. |
| | 93 | | /// </summary> |
| | 94 | | [JsonProperty(PropertyName = "geometryId")] |
| 0 | 95 | | public string GeometryId { get; set; } |
| | 96 | |
|
| | 97 | | /// <summary> |
| | 98 | | /// Gets or sets latitude of the nearest point of the geometry. |
| | 99 | | /// </summary> |
| | 100 | | [JsonProperty(PropertyName = "nearestLat")] |
| 0 | 101 | | public double? NearestLat { get; set; } |
| | 102 | |
|
| | 103 | | /// <summary> |
| | 104 | | /// Gets or sets longitude of the nearest point of the geometry. |
| | 105 | | /// </summary> |
| | 106 | | [JsonProperty(PropertyName = "nearestLon")] |
| 0 | 107 | | public double? NearestLon { get; set; } |
| | 108 | |
|
| | 109 | | /// <summary> |
| | 110 | | /// Gets or sets the unique id returned from user upload service when |
| | 111 | | /// uploading a geofence. Will not be included in geofencing post API. |
| | 112 | | /// </summary> |
| | 113 | | [JsonProperty(PropertyName = "udId")] |
| 0 | 114 | | public string UdId { get; set; } |
| | 115 | |
|
| | 116 | | } |
| | 117 | | } |