Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alekseytimoshchenko/1360661f627a0a624be25c71075777f5 to your computer and use it in GitHub Desktop.
Save alekseytimoshchenko/1360661f627a0a624be25c71075777f5 to your computer and use it in GitHub Desktop.
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!
@alekseytimoshchenko
Copy link
Author

k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment