MPBookingService

open class MPBookingService

Functions

Link copied to clipboard
open fun cancelBooking(@NonNull booking: MPBooking, @NonNull listener: OnResultAndDataReadyListener<MPBooking>)
Cancels the booking
Link copied to clipboard
open fun getBookableLocations(@NonNull query: MPBookableQuery, @NonNull completion: OnResultAndDataReadyListener<List<MPLocation>>)
Performs a request for all available locations that fit the provided query.
Link copied to clipboard
open fun getBookingsUsingQuery(@NonNull query: MPBookingsQuery, @NonNull completion: OnResultAndDataReadyListener<List<MPBooking>>)
Performs a request for all bookings that fit the provided query.
Link copied to clipboard
open fun getInstance(): MPBookingService
Link copied to clipboard
open fun getLocationsConfiguredForBooking(@NonNull completion: OnResultAndDataReadyListener<List<MPLocation>>)
Performs a request for all bookable locations.
Link copied to clipboard
open fun performBooking(@NonNull booking: MPBooking, @NonNull listener: OnResultAndDataReadyListener<MPBooking>)
Performs a request to the service provider to insert the provided booking
Link copied to clipboard
open fun setAuthConfig(@Nullable authConfig: MPBookingAuthConfig)
Adds authentication credentials to booking service requests.