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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access