using System.ComponentModel.DataAnnotations; using MuiCharts.Domain.Enums; namespace MuiCharts.Domain.Models; /// /// Represents a track with information about the first point ID, second point ID, distance, surface, and maximum speed. /// public class Track { /// /// Gets or sets the first ID. /// public required int FirstId { get; init; } /// /// Gets or sets the second ID. /// public required int SecondId { get; init; } /// /// Gets or sets the distance. /// [Range(1, int.MaxValue)] public required int Distance { get; init; } /// /// Gets or sets the surface. /// public required Surface Surface { get; init; } /// /// Gets or sets the maximum speed. /// public required MaxSpeed MaxSpeed { get; init; } }