auto.bus_api/SharedModels/QueryParameters/Objects/VehicleEnrollmentParameters.cs
cuqmbr 39fddff553 refactor: change VehicleEnrollment CRUD to perform only compound data manipulations
This removes enpoints where you can CRUD only VehicleEnrollment database table and refines those where you can CRUD both VehicleEnrollment and RouteAddressDetail
2023-05-24 16:53:31 +03:00

22 lines
840 B
C#

namespace SharedModels.QueryParameters.Objects;
public class VehicleEnrollmentParameters : ParametersBase
{
public const string DefaultFields = "id,vehicleId,vehicle,routeId,route,departureDateTime,tickets,reviews," +
"isCancelled,cancellationComment,routeAddressDetails";
public VehicleEnrollmentParameters()
{
Fields = DefaultFields;
}
public int? VehicleId { get; set; }
public int? RouteId { get; set; }
public DateTime? FromDepartureDateTime { get; set; }
public DateTime? ToDepartureDateTime { get; set; }
public bool? IsCancelled {get; set; }
public TimeSpan? FromTotalTripDuration { get; set; }
public TimeSpan? ToTotalTripDuration { get; set; }
public double? FromCost { get; set; }
public double? ToCost { get; set; }
}