allow RdvQueryProviderInfo to be deserialised

This commit is contained in:
Paul Schneider 2019-09-18 01:38:46 +01:00
commit d01eb761f3
4 changed files with 23 additions and 17 deletions

View file

@ -0,0 +1,28 @@
using System.ComponentModel.DataAnnotations;
using Yavsc.Attributes.Validation;
namespace Yavsc.Models.Relationship
{
/// <summary>
/// Position.
/// </summary>
public class Position: IPosition
{
/// <summary>
/// The longitude.
/// </summary>
[YaRequired(),Display(Name="Longitude")]
[Range(-180, 360.0)]
public double Longitude { get; set; }
/// <summary>
///
/// The latitude.
/// </summary>
[YaRequired(),Display(Name="Latitude")]
[Range(-90, 90 )]
public double Latitude { get; set; }
}
}