TransportFlight.cs 493 B

12345678910111213141516
  1. namespace TransportMauiApp.Models;
  2. public sealed class TransportFlight
  3. {
  4. public int FlightId { get; set; }
  5. public TimeSpan Duration { get; set; }
  6. public int? TransportId { get; set; }
  7. public int? RouteId { get; set; }
  8. public string TransportName { get; set; } = string.Empty;
  9. public string RouteName { get; set; } = string.Empty;
  10. public override string ToString()
  11. {
  12. return $"{FlightId}: {Duration:hh\\:mm\\:ss}, {TransportName}, {RouteName}";
  13. }
  14. }