| | 1 | | // <auto-generated> |
| | 2 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 3 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 4 | | // regenerated. |
| | 5 | | // </auto-generated> |
| | 6 | |
|
| | 7 | | namespace Microsoft.Azure.CognitiveServices.Search.LocalSearch.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | | using System.Linq; |
| | 11 | |
|
| | 12 | | public partial class GeoCoordinates |
| | 13 | | { |
| | 14 | | /// <summary> |
| | 15 | | /// Initializes a new instance of the GeoCoordinates class. |
| | 16 | | /// </summary> |
| 0 | 17 | | public GeoCoordinates() |
| | 18 | | { |
| | 19 | | CustomInit(); |
| 0 | 20 | | } |
| | 21 | |
|
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the GeoCoordinates class. |
| | 24 | | /// </summary> |
| 0 | 25 | | public GeoCoordinates(double latitude, double longitude, double? elevation = default(double?)) |
| | 26 | | { |
| 0 | 27 | | Latitude = latitude; |
| 0 | 28 | | Longitude = longitude; |
| 0 | 29 | | Elevation = elevation; |
| | 30 | | CustomInit(); |
| 0 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// An initialization method that performs custom operations like setting defaults |
| | 35 | | /// </summary> |
| | 36 | | partial void CustomInit(); |
| | 37 | |
|
| | 38 | | /// <summary> |
| | 39 | | /// </summary> |
| | 40 | | [JsonProperty(PropertyName = "latitude")] |
| 0 | 41 | | public double Latitude { get; set; } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// </summary> |
| | 45 | | [JsonProperty(PropertyName = "longitude")] |
| 0 | 46 | | public double Longitude { get; set; } |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// </summary> |
| | 50 | | [JsonProperty(PropertyName = "elevation")] |
| 0 | 51 | | public double? Elevation { get; private set; } |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// Validate the object. |
| | 55 | | /// </summary> |
| | 56 | | /// <exception cref="Rest.ValidationException"> |
| | 57 | | /// Thrown if validation fails |
| | 58 | | /// </exception> |
| | 59 | | public virtual void Validate() |
| | 60 | | { |
| | 61 | | //Nothing to validate |
| 0 | 62 | | } |
| | 63 | | } |
| | 64 | | } |