Last active
July 13, 2019 17:02
-
-
Save harmittaa/6a15140cc276f22528d04fda010919e1 to your computer and use it in GitHub Desktop.
Koin 2.0 and Retrofit 2.6.0 example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.github.harmittaa.koinexample.model.Weather | |
import retrofit2.http.GET | |
interface WeatherApi { | |
@GET("weather?q=Helsinki&units=metric") | |
suspend fun getForecast(): Weather | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment