Initial commit

Made-with: Cursor
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-03-25 05:21:08 +02:00
commit 0625cd4157
90 changed files with 3430 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
using Azaion.Flights.Enums;
namespace Azaion.Flights.DTOs;
public class CreateAircraftRequest
{
public AircraftType Type { get; set; }
public string Model { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public FuelType FuelType { get; set; }
public decimal BatteryCapacity { get; set; }
public decimal EngineConsumption { get; set; }
public decimal EngineConsumptionIdle { get; set; }
public bool IsDefault { get; set; }
}
+8
View File
@@ -0,0 +1,8 @@
namespace Azaion.Flights.DTOs;
public class CreateFlightRequest
{
public Guid AircraftId { get; set; }
public string Name { get; set; } = string.Empty;
public DateTime? CreatedDate { get; set; }
}
+12
View File
@@ -0,0 +1,12 @@
using Azaion.Flights.Enums;
namespace Azaion.Flights.DTOs;
public class CreateWaypointRequest
{
public GeoPoint? GeoPoint { get; set; }
public WaypointSource WaypointSource { get; set; }
public WaypointObjective WaypointObjective { get; set; }
public int OrderNum { get; set; }
public decimal Height { get; set; }
}
+8
View File
@@ -0,0 +1,8 @@
namespace Azaion.Flights.DTOs;
public class ErrorResponse
{
public int StatusCode { get; set; }
public string Message { get; set; } = string.Empty;
public List<string>? Errors { get; set; }
}
+8
View File
@@ -0,0 +1,8 @@
namespace Azaion.Flights.DTOs;
public class GeoPoint
{
public decimal? Lat { get; set; }
public decimal? Lon { get; set; }
public string? Mgrs { get; set; }
}
+7
View File
@@ -0,0 +1,7 @@
namespace Azaion.Flights.DTOs;
public class GetAircraftsQuery
{
public string? Name { get; set; }
public bool? IsDefault { get; set; }
}
+10
View File
@@ -0,0 +1,10 @@
namespace Azaion.Flights.DTOs;
public class GetFlightsQuery
{
public string? Name { get; set; }
public DateTime? FromDate { get; set; }
public DateTime? ToDate { get; set; }
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 20;
}
+9
View File
@@ -0,0 +1,9 @@
namespace Azaion.Flights.DTOs;
public class PaginatedResponse<T>
{
public List<T> Items { get; set; } = [];
public int TotalCount { get; set; }
public int Page { get; set; }
public int PageSize { get; set; }
}
+6
View File
@@ -0,0 +1,6 @@
namespace Azaion.Flights.DTOs;
public class SetDefaultRequest
{
public bool IsDefault { get; set; }
}
+15
View File
@@ -0,0 +1,15 @@
using Azaion.Flights.Enums;
namespace Azaion.Flights.DTOs;
public class UpdateAircraftRequest
{
public AircraftType? Type { get; set; }
public string? Model { get; set; }
public string? Name { get; set; }
public FuelType? FuelType { get; set; }
public decimal? BatteryCapacity { get; set; }
public decimal? EngineConsumption { get; set; }
public decimal? EngineConsumptionIdle { get; set; }
public bool? IsDefault { get; set; }
}
+7
View File
@@ -0,0 +1,7 @@
namespace Azaion.Flights.DTOs;
public class UpdateFlightRequest
{
public string? Name { get; set; }
public Guid? AircraftId { get; set; }
}
+12
View File
@@ -0,0 +1,12 @@
using Azaion.Flights.Enums;
namespace Azaion.Flights.DTOs;
public class UpdateWaypointRequest
{
public GeoPoint? GeoPoint { get; set; }
public WaypointSource WaypointSource { get; set; }
public WaypointObjective WaypointObjective { get; set; }
public int OrderNum { get; set; }
public decimal Height { get; set; }
}