Booking Manager
Manages user bookings on the units
Functions
Create a booking for the given unitId.
Support function to create a booking for the given unitId.
After logout LiveData.getValue is set to null. You need to re-observe this LiveData once the user is logged out!
Ends an existing booking. That call is used for currently ongoing bookings.
Get the booking parameters for a unit.
Support function to get the booking parameters for a unit.
Get BookableUnit's in a paginated way.
Support function to get BookableUnit's in a paginated way. Returns a single page with key to next page.
Get Booking's. Bookings are sorted by Booking.startsAt. You will get bookings paginated based on your PageConfig.
Support function to get Booking's in a paginated way. Returns a single page with key to next page.
Get a LiveData for the logged user existing bookings. Those can be for either DOOR or LOCKER_BOX types.
Get a paginated TimePeriod for the given unitId.
Support function to get a paginated TimePeriod for the given unitId.
Removes a booking.
Support function to remove a booking.