30 lines
702 B
C#
30 lines
702 B
C#
using Distribution.Models;
|
|
|
|
namespace Distribution.Features.Ride;
|
|
|
|
public record RideResponse(
|
|
Guid Id,
|
|
RideStatus Status,
|
|
Guid VehicleId,
|
|
string VehicleNumberPlate,
|
|
Guid DriverProfileId,
|
|
string DriverFullName,
|
|
int Meterstart,
|
|
int Meterend,
|
|
DateTime? StartedAt,
|
|
DateTime? ClosedAt,
|
|
CancelRequestType? CancelTypeCode,
|
|
string? CancelReason,
|
|
DateTime CreatedAt);
|
|
|
|
public record CreateRideRequest(
|
|
Guid VehicleId,
|
|
Guid DriverProfileId,
|
|
int Meterstart);
|
|
|
|
public record AssignRideDriverRequest(Guid DriverProfileId);
|
|
|
|
public record CloseRideRequest(int Meterend);
|
|
|
|
public record CancelRideRequest(CancelRequestType TypeCode, string Reason);
|