android / codelab-kotlin-coroutines

Kotlin Coroutines codelab
Apache License 2.0
552 stars 268 forks source link

Instead of Result it should be Response in section 9 #160

Open rahul-vaish-007 opened 2 years ago

rahul-vaish-007 commented 2 years ago

In the snapshot it can be seen that instructor has specified to use Result<String> if full result from Retrofit is required. However there is no such class as Result in Retrofit. In my opinion this should have been Response<String> where fully qualified name of Response is retrofit2.Response.

Screenshot 2022-02-03 at 15 43 33