IncrementParkingSlotOccupation

Increments the parking slot currently occupied by the user. If the user isn't parking it returns an instance of Either.Left containing AppError.NoParkingSlotOccupied

Constructors

Link copied to clipboard
constructor(parkingSlotRepository: ParkingSlotRepository)

Types

Link copied to clipboard
data class Params(val stopEnd: Instant)

Functions

Link copied to clipboard
suspend operator fun invoke(params: IncrementParkingSlotOccupation.Params): Either<AppError, Unit>
Link copied to clipboard
suspend operator fun <Res> AsyncUseCase<Unit, Res>.invoke(): Res

Utility method to avoid passing Unit argument to invoke