Support Booking Manager
interface SupportBookingManager
Content copied to clipboard
Support interface for clients that are not using Kotlin Coroutines.
You can call the functions in this interface from any JVM language.
Functions
create Booking
Link copied to clipboard
abstract fun createBooking(unitId: String, startsAt: String, endsAt: String, uniqueRequestId: String = UUID.randomUUID().toString(), callback: (Result<Booking>) -> Unit): Cancelable
Content copied to clipboard
abstract fun createBooking(unitId: String, startsAt: String, endsAt: String, uniqueRequestId: String = UUID.randomUUID().toString(), lifecycleOwner: LifecycleOwner, callback: (Result<Booking>) -> Unit): Cancelable
Content copied to clipboard
Support function to create a booking for the given unitId.
get Bookable Parameters
Link copied to clipboard
abstract fun getBookableParameters(unitId: String, callback: (Result<BookableParams>) -> Unit): Cancelable
Content copied to clipboard
abstract fun getBookableParameters(unitId: String, lifecycleOwner: LifecycleOwner, callback: (Result<BookableParams>) -> Unit): Cancelable
Content copied to clipboard
Support function to get the booking parameters for a unit.
get Bookable Units
Link copied to clipboard
abstract fun getBookableUnits(parentUnitId: String? = null, pageConfig: PageConfig?, endsAfter: String, callback: (Result<Paged<SensorbergUnit.BookableUnit>>) -> Unit): Cancelable
Content copied to clipboard
abstract fun getBookableUnits(parentUnitId: String? = null, pageConfig: PageConfig?, endsAfter: String, lifecycleOwner: LifecycleOwner, callback: (Result<Paged<SensorbergUnit.BookableUnit>>) -> Unit): Cancelable
Content copied to clipboard
Support function to get BookableUnit's in a paginated way. Returns a single page with key to next page.
get Bookings
Link copied to clipboard
abstract fun getBookings(endsAfter: String, startsBefore: String, pageConfig: PageConfig?, callback: (Result<Paged<Booking>>) -> Unit): Cancelable
Content copied to clipboard
abstract fun getBookings(endsAfter: String, startsBefore: String, pageConfig: PageConfig?, lifecycleOwner: LifecycleOwner, callback: (Result<Paged<Booking>>) -> Unit): Cancelable
Content copied to clipboard
Support function to get Booking's in a paginated way. Returns a single page with key to next page.
get Schedules
Link copied to clipboard
abstract fun getSchedules(unitId: String, endsAfter: String, startsBefore: String? = null, pageConfig: PageConfig? = null, callback: (Result<Paged<TimePeriod>>) -> Unit): Cancelable
Content copied to clipboard
abstract fun getSchedules(unitId: String, endsAfter: String, startsBefore: String? = null, pageConfig: PageConfig? = null, lifecycleOwner: LifecycleOwner, callback: (Result<Paged<TimePeriod>>) -> Unit): Cancelable
Content copied to clipboard
Support function to get a paginated TimePeriod for the given unitId.
remove Booking
Link copied to clipboard
abstract fun removeBooking(id: String, callback: (Result<Unit>) -> Unit): Cancelable
Content copied to clipboard
abstract fun removeBooking(id: String, lifecycleOwner: LifecycleOwner, callback: (Result<Unit>) -> Unit): Cancelable
Content copied to clipboard
Support function to remove a booking.
Inheritors
BookingManager
Link copied to clipboard