What are the benefits of wrapping the network result in a Response class?
interface DrinksApi {
@GET("drinks.json")
suspend fun getDrinks(): Response<List<Drink>>
}What are the benefits of wrapping the network result in a Response class?
interface DrinksApi {
@GET("drinks.json")
suspend fun getDrinks(): Response<List<Drink>>
}Create a free account to access the full topic