ParkingSlotsScreenViewModel

class ParkingSlotsScreenViewModel(viewCurrentParkingSlot: ViewCurrentParkingSlot, findParkingSlots: FindParkingSlots, logoutUser: LogoutUser, deleteUser: DeleteUser, router: Router) : ViewModel

View Model of the

Constructors

Link copied to clipboard
constructor(viewCurrentParkingSlot: ViewCurrentParkingSlot, findParkingSlots: FindParkingSlots, logoutUser: LogoutUser, deleteUser: DeleteUser, router: Router)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard

Navigates to the change password screen

Link copied to clipboard

Deletes the currently logged in user

Link copied to clipboard

Loads the data of all the parking slot near position

Link copied to clipboard
fun logout()

Logs out the currently logged in user

Link copied to clipboard
fun viewParkingSlot(parkingSlot: ParkingSlot)

Navigates to the screen with the details of the parkingSlot

Link copied to clipboard

Informs the view model that the visibility of the view is changed

Properties

Link copied to clipboard
val alertState: StateFlow<AppAlertState>

Current state of UI alerts

Link copied to clipboard

Current state of the UI