Created
July 26, 2018 09:35
-
-
Save alekseytimoshchenko/1360661f627a0a624be25c71075777f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BookingReservationAPI api = new BookingReservationAPI("<username>", | |
"<password>", | |
new BookingReservationHandler() { | |
@Override | |
public BookingReservationAcknowledgement handle(BookingReservation reservation) { | |
// Handle reservation. | |
} | |
}); | |
api.pullPeriodically(); // Create a separate thread internally. | |
api.cancelPeriodicPull(); // Only use if you really need to cancel periodic pull! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
k