Defining Domain Objects
We'll cover the following
Fetching and storing data
Our app will make requests to the FAA web service to fetch the airport data. For this, we’ll need a variation of the Airport
class we created in Chapter 19, Unit Testing with Kotlin. In Android Studio, in the Project pane, right click the package name com.agiledeveloper.airports
under app/java
and select New, and Kotlin File/Class. Change the value for Kind to Class and key in the name “Airport” in the text box next to the Name label.
Edit the generated file to create the Airport
class, like so:
Get hands-on with 1200+ tech skills courses.