Using an HTTP Client
Your TaernylAir project is now capable of loading flight information, but that alone is not enough information get Madrigal onto her plane. There are very strict rules about how passengers are to board. For example, the boarding doors close 15 minutes before the plane departs, and all passengers must be on board if they are to take to the skies.
In addition, Madrigal is part of Taernyl’s loyalty program. Each tier of this program has its own boarding priority, and the tiers are based on how many miles the passenger has flown with the airline.
To show accurate boarding information for a passenger, you will need to query their loyalty tier information from the endpoint at kotlin-book.bignerdranch.com/2e/loyalty ...
Get Kotlin Programming: The Big Nerd Ranch Guide, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.