2024-07-04 11:02:45 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2023-03-10 05:09:41 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
namespace AsbCloudApp.Data;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Точка на карте с названием
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MapPointBaseDto : IMapPoint, IId
|
2023-02-07 16:20:36 +05:00
|
|
|
|
{
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
2023-02-07 16:20:36 +05:00
|
|
|
|
/// <summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// Название
|
2023-02-07 16:20:36 +05:00
|
|
|
|
/// </summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
|
[StringLength(50, MinimumLength = 1, ErrorMessage = "Допустимая длина названия от 1 до 50 символов")]
|
|
|
|
|
public string Caption { get; set; } = null!;
|
2023-02-07 16:20:36 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|
[Range(-90, 90, ErrorMessage = "Допустимые значения широты от -90 до 90")]
|
|
|
|
|
public double? Latitude { get; set; }
|
2023-02-07 16:20:36 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|
[Range(-180, 180, ErrorMessage = "Допустимые значения долготы от -180 до 180")]
|
|
|
|
|
public double? Longitude { get; set; }
|
2023-02-07 16:20:36 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|
public SimpleTimezoneDto Timezone { get; set; } = null!;
|
2023-02-07 16:20:36 +05:00
|
|
|
|
}
|