2016-05-17 18:22:18 +02:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2019-09-04 01:25:36 +01:00
|
|
|
using Yavsc.Attributes.Validation;
|
2016-05-17 18:22:18 +02:00
|
|
|
|
2017-01-19 12:59:49 +01:00
|
|
|
namespace Yavsc.Models.Relationship
|
2016-05-17 18:22:18 +02:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Position.
|
|
|
|
|
/// </summary>
|
2018-02-03 20:17:29 +01:00
|
|
|
public class Position: IPosition
|
2016-05-17 18:22:18 +02:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The longitude.
|
|
|
|
|
/// </summary>
|
2019-09-04 01:25:36 +01:00
|
|
|
[YaRequired(),Display(Name="Longitude")]
|
2016-05-17 18:22:18 +02:00
|
|
|
[Range(-180, 360.0)]
|
|
|
|
|
|
|
|
|
|
public double Longitude { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// The latitude.
|
|
|
|
|
/// </summary>
|
2019-09-04 01:25:36 +01:00
|
|
|
[YaRequired(),Display(Name="Latitude")]
|
2016-05-17 18:22:18 +02:00
|
|
|
[Range(-90, 90 )]
|
|
|
|
|
public double Latitude { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|