MapsIndoors iOS SDK V3
|
#include <MPBookingService.h>
Instance Methods | |
(void) | - getBookableLocationsUsingQuery:completion: |
(void) | - getLocationsConfiguredForBooking:completion: |
(void) | - getBookingsUsingQuery:completion: |
(void) | - performBooking:completion: |
(void) | - cancelBooking:completion: |
Class Methods | |
(instancetype) | + sharedInstance |
Properties | |
MPBookingAuthConfig * | authenticationConfig |
MPBookingService allows for access to the MapsIndoors booking service. The booking service is a special integration that has to be enabled in the MapsIndoors cloud systems.
The service allows for:
- (void) cancelBooking: | (MPBooking *) | booking | |
completion: | (mpBookingCompletion) | completion |
Cancel the booking identified by the booking parameter.
booking | booking to cancel |
completion | handler |
- (void) getBookableLocationsUsingQuery: | (MPBookableQuery *) | q | |
completion: | (mpLocationListCompletion) | completion |
Query for bookable locations given the query filter.
q | filter to apply |
completion | handler |
- (void) getBookingsUsingQuery: | (MPBookingsQuery *) | q | |
completion: | (mpBookingListCompletion) | completion |
Get existing booking according the the given query.
q | filter to apply |
completion | handler |
- (void) getLocationsConfiguredForBooking: | (MPBookableQuery *) | query | |
completion: | (mpLocationListCompletion) | completion |
Query for locations that are configured for booking given the query filter.
query | filter to apply |
completion | handler |
- (void) performBooking: | (MPBooking *) | booking | |
completion: | (mpBookingCompletion) | completion |
Book the resource identified by the booking parameter.
booking | identification of resource, timespan etc to book |
completion | handler |
+ (instancetype) sharedInstance |
|
readwritenonatomicstrong |
Set authentication configuration. This may be used if the Booking Service should book on behalf of an authenticated user. Otherwise the attempted bookings will be anonymous.