mirror of
https://github.com/azaion/flights.git
synced 2026-04-22 07:06:32 +00:00
Initial commit
Made-with: Cursor
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Azaion.Flights.DTOs;
|
||||
|
||||
public class GetAircraftsQuery
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public bool? IsDefault { get; set; }
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Azaion.Flights.DTOs;
|
||||
|
||||
public class SetDefaultRequest
|
||||
{
|
||||
public bool IsDefault { get; set; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Azaion.Flights.DTOs;
|
||||
|
||||
public class UpdateFlightRequest
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public Guid? AircraftId { get; set; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user