September 2019
Intermediate to advanced
462 pages
11h 3m
English
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 18, 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:
| | package com.agiledeveloper.airports |
| | |
| | import com.beust.klaxon.* |
| | |
| | class Weather(@Json(name = "Temp") val temperature: Array<String>) |
Read now
Unlock full access